Merge pull request #70 from pennyteenycat/home-edits

home-edits
This commit is contained in:
pennyteenycat 2025-10-27 21:48:51 +01:00 committed by GitHub
commit 75c85785b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 16 additions and 10 deletions

View File

@ -1,6 +1,6 @@
.page { .page {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 24px; gap: 37px;
position: relative; position: relative;
} }

View File

@ -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;
} }

View File

@ -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>
); );
} }

View File

@ -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;
}
} }

View File

@ -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>