commit
75c85785b9
@ -1,6 +1,6 @@
|
|||||||
.page {
|
.page {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 24px;
|
gap: 37px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,14 @@
|
|||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 16px;
|
padding: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 76px;
|
top: 60px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
margin-bottom: clamp(16px, 2.5vw, 32px);
|
padding-bottom: clamp(16px, 2.5vw, 32px);
|
||||||
|
backdrop-filter: blur(12px);
|
||||||
|
background: #f8fafc8f;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,6 +35,11 @@ export default function GlobalNewMessagesBanner() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
|
<NewMessages
|
||||||
|
chats={unreadChats}
|
||||||
|
isVisibleAll={isVisibleAll}
|
||||||
|
currentBalance={balance}
|
||||||
|
/>
|
||||||
{unreadChats.length > 1 && (
|
{unreadChats.length > 1 && (
|
||||||
<ViewAll
|
<ViewAll
|
||||||
count={unreadChats.length}
|
count={unreadChats.length}
|
||||||
@ -42,11 +47,6 @@ export default function GlobalNewMessagesBanner() {
|
|||||||
onClick={() => setHomeNewMessages({ isVisibleAll: !isVisibleAll })}
|
onClick={() => setHomeNewMessages({ isVisibleAll: !isVisibleAll })}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<NewMessages
|
|
||||||
chats={unreadChats}
|
|
||||||
isVisibleAll={isVisibleAll}
|
|
||||||
currentBalance={balance}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,4 +5,8 @@
|
|||||||
width: fit-content;
|
width: fit-content;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
|
& > .text {
|
||||||
|
color: #6b7280;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,7 @@ export default function ViewAll({ count, isAll, onClick }: ViewAllProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Button className={styles.viewAllButton} onClick={onClick}>
|
<Button className={styles.viewAllButton} onClick={onClick}>
|
||||||
<Typography size="sm" weight="medium" color="muted">
|
<Typography size="sm" weight="medium" className={styles.text}>
|
||||||
{isAll ? t("hide_all") : t("view_all", { count })}
|
{isAll ? t("hide_all") : t("view_all", { count })}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user