Skip to content

Commit

Permalink
Release 1.7.1 (#1412)
Browse files Browse the repository at this point in the history
* fix: fixed font sizes and dark theme (#1376)

* fix: fixed font sizes and dark theme

* fix: fixed line height

* Add erc1155 to token gating group conditions (#1382)

* feat: add erc1155 to token gating group conditions

* fix: add tokenId to fetchContractInfo function

* lock file updated

---------

Co-authored-by: rohitmalhotra1420 <[email protected]>

* Replaced useResolveWeb3Name hook with resolveWeb3Name helper function (#1390)

* fix: added common resolveweb3 for domain name

* fix: fixed review comments

* Notification Ui change (#1396)

* feat: new notification ui

* fix: fixed review comments

* lock file changed

* fix: fixed color and cta hover

* fix: fixed the review comments

* fix: fixed link icon

---------

Co-authored-by: rohitmalhotra1420 <[email protected]>

* Push Chat Reply Feature (#1399)

* Functioning reply in ChatPreviewList, ChatList and Input

* Reply cancel and replying to in UIWeb:MessageInput

* Reply Feature with styles

* fix: modified some parts in helper func

* fix: added the replied to text and also fixed the emoji picker position

added the replied to text in the chat bubble and fixed the emoji picker position also fixed the
breaking of the chat due to the messagetype issue

* fix: fixed the UI for the reply feature

changed the replying to to reply and also fixed the image positioning

* fix: fixed the issues

moved the funcs to helpers and also removed the commented code

* fix: fixed image in notification

* fix: added the commented code that was removed

---------

Co-authored-by: abhishek-01k <[email protected]>
Co-authored-by: Monalisha Mishra <[email protected]>

* uiweb lock file updated

* Add support for new chains in the chat criteria modal (#1404)

* fix: add cyber, linea and base

* fix: update cyber

* fix: fixed the theme for chat reply feature

fixed the UI of the chat reply

* Added new infura key (#1408)

* fix: fixed infura key

* fix: fixed build issue

* fix: changed infura key

* fix: fixed review comments

* fix: fixed review comment

* lock files  fixed

* fix: fixed the twitter preview Size issue

* fix: modified the address for the reply preview

* Release 1.7.0 (#1411) (#1413)

* fix: fixed font sizes and dark theme (#1376)

* fix: fixed font sizes and dark theme

* fix: fixed line height

* Add erc1155 to token gating group conditions (#1382)

* feat: add erc1155 to token gating group conditions

* fix: add tokenId to fetchContractInfo function

* lock file updated

---------



* Replaced useResolveWeb3Name hook with resolveWeb3Name helper function (#1390)

* fix: added common resolveweb3 for domain name

* fix: fixed review comments

* Notification Ui change (#1396)

* feat: new notification ui

* fix: fixed review comments

* lock file changed

* fix: fixed color and cta hover

* fix: fixed the review comments

* fix: fixed link icon

---------



* Push Chat Reply Feature (#1399)

* Functioning reply in ChatPreviewList, ChatList and Input

* Reply cancel and replying to in UIWeb:MessageInput

* Reply Feature with styles

* fix: modified some parts in helper func

* fix: added the replied to text and also fixed the emoji picker position

added the replied to text in the chat bubble and fixed the emoji picker position also fixed the
breaking of the chat due to the messagetype issue

* fix: fixed the UI for the reply feature

changed the replying to to reply and also fixed the image positioning

* fix: fixed the issues

moved the funcs to helpers and also removed the commented code

* fix: fixed image in notification

* fix: added the commented code that was removed

---------




* uiweb lock file updated

* Add support for new chains in the chat criteria modal (#1404)

* fix: add cyber, linea and base

* fix: update cyber

* Added new infura key (#1408)

* fix: fixed infura key

* fix: fixed build issue

* fix: changed infura key

* fix: fixed review comments

* fix: fixed review comment

* lock files  fixed

---------

Co-authored-by: Rohit Malhotra <[email protected]>
Co-authored-by: Kalash Shah <[email protected]>
Co-authored-by: Harsh | Push <[email protected]>
Co-authored-by: abhishek-01k <[email protected]>
Co-authored-by: Kolade <[email protected]>

* Revert "Release 1.7.0 (#1411) (#1413)" (#1414)

This reverts commit f96f451.

---------

Co-authored-by: Kalash Shah <[email protected]>
Co-authored-by: rohitmalhotra1420 <[email protected]>
Co-authored-by: Harsh | Push <[email protected]>
Co-authored-by: abhishek-01k <[email protected]>
Co-authored-by: Kolade <[email protected]>
Co-authored-by: Abhishek <[email protected]>
  • Loading branch information
7 people authored Oct 24, 2024
1 parent 10f7a9a commit 202ea53
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useEffect, useState } from 'react';

// External Packages
import { TwitterTweetEmbed } from 'react-twitter-embed';
import styled from 'styled-components';

// Internal Compoonents
import { IFrame } from '../../../../../types';
Expand All @@ -11,9 +12,8 @@ import { checkTwitterUrl } from '../../../helpers/twitter';

import { FrameRenderer } from './FrameRenderer';
import { VideoRenderer } from './VideoRenderer';

// Internal Configs

import { device } from '../../../../../config/globals';
// Assets

// Interfaces & Types
Expand Down Expand Up @@ -149,6 +149,31 @@ export const PreviewRenderer = ({
frameData={initialized.frameData}
/>
) : !initialized.loading && !initialized.error && initialized.url && initialized.urlType === 'twitter' ? (
<TwitterTweetEmbed tweetId={initialized.url} />
<TwitterEmbedWrapper>
<TwitterTweetEmbed tweetId={initialized.url} />
</TwitterEmbedWrapper>
) : null;
};

const TwitterEmbedWrapper = styled.div`
width: 100%;
max-width: 550px;
margin: 0 auto;
overflow: hidden;
padding: 0 10px;
> div {
max-width: 100% !important;
}
iframe {
max-width: 100% !important;
}
@media (max-width: ${device.mobileL}) {
max-width: 100%;
iframe {
width: 100% !important;
}
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { CardRenderer } from '../../CardRenderer';

// Interfaces & Types
import { IMessagePayload } from '../../../exportedTypes';
import { pCAIP10ToWallet, shortenText } from '../../../../../helpers';

// Constants

Expand Down Expand Up @@ -155,15 +156,13 @@ export const ReplyCard = ({
<Span
padding="8px 12px 0px"
fontSize="10px"
color={theme.textColor?.chatSentBubbleText}
color={position ? `${theme.textColor?.chatSentBubbleText}` : `${theme.textColor?.chatReceivedBubbleText}`}
>
<Span
fontWeight="500"
padding="0px"
>
{`${replyPayloadManager.payload.fromDID?.split(':')[1].slice(0, 6)}...${replyPayloadManager.payload.fromDID
?.split(':')[1]
.slice(-6)}`}
{shortenText(pCAIP10ToWallet(replyPayloadManager.payload.fromDID), 6, true)}
</Span>
</Span>
<CardRenderer
Expand All @@ -173,12 +172,11 @@ export const ReplyCard = ({
previewMode={true}
/>
</Section>

)}
</ReplySection>
);
};

const ReplySection = styled(Section) <ReplySectionProps>`
const ReplySection = styled(Section)<ReplySectionProps>`
border-left: 4px solid ${({ borderBG }) => borderBG || 'transparent'};
`;

0 comments on commit 202ea53

Please sign in to comment.