Skip to content

Commit

Permalink
Merge pull request #2140 from daostack/remove-double-scroll-bar-chat
Browse files Browse the repository at this point in the history
dev app- there are 2 scrollers in the chat (Android & iOS) #1456
  • Loading branch information
roienatan authored Oct 4, 2023
2 parents 4b3fcfb + 95649d6 commit c5c8c1d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
background-color: $white;
box-sizing: border-box;
--chat-input-wrapper-height: 3.125rem;

@include tablet {
height: 100%;
margin-top: 0;
}
}

.messages {
Expand All @@ -24,7 +19,7 @@
display: flex;
flex-direction: column-reverse;
padding: 0.5rem 2rem 0;
padding-bottom: calc(var(--chat-input-wrapper-height) + 7rem);
padding-bottom: var(--chat-input-wrapper-height);
}

.emptyChat {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@
margin-right: 0.25rem;
}

.content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
height: calc(100vh - #{$container-mobile-header-height});
}

.commonName {
margin: 0;
}
Expand Down
70 changes: 34 additions & 36 deletions src/pages/common/components/ChatMobileModal/ChatMobileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,44 +56,42 @@ const ChatMobileModal: FC<ChatMobileModalProps> = (props) => {
isHeaderSticky={Boolean(header)}
mobileFullScreen
>
<div className={styles.content}>
{!header && (
<div className={styles.header}>
<div className={styles.headerContent}>
{hasBackButton && (
<ButtonIcon onClick={onClose}>
<LongLeftArrowIcon className={styles.backButtonIcon} />
</ButtonIcon>
)}
<Image
className={styles.image}
src={commonImage}
alt={`${commonName}'s image`}
placeholderElement={null}
aria-hidden
/>
<p className={styles.commonName}>{commonName}</p>
</div>
{hasCloseIcon && (
<CloseIcon
width={closeIconSize}
height={closeIconSize}
fill={Colors.secondaryBlue}
/>
{!header && (
<div className={styles.header}>
<div className={styles.headerContent}>
{hasBackButton && (
<ButtonIcon onClick={onClose}>
<LongLeftArrowIcon className={styles.backButtonIcon} />
</ButtonIcon>
)}
<Image
className={styles.image}
src={commonImage}
alt={`${commonName}'s image`}
placeholderElement={null}
aria-hidden
/>
<p className={styles.commonName}>{commonName}</p>
</div>
)}
{title && (
<p
className={classNames(styles.title, {
[styles.titleRTL]: isRTL(title),
})}
>
{title}
</p>
)}
<div className={styles.modalChildren}>{children}</div>
</div>
{hasCloseIcon && (
<CloseIcon
width={closeIconSize}
height={closeIconSize}
fill={Colors.secondaryBlue}
/>
)}
</div>
)}
{title && (
<p
className={classNames(styles.title, {
[styles.titleRTL]: isRTL(title),
})}
>
{title}
</p>
)}
<div className={styles.modalChildren}>{children}</div>
</Modal>
);
};
Expand Down

0 comments on commit c5c8c1d

Please sign in to comment.