Fix account page UI

This commit is contained in:
niki authored and Andrew Attali committed 2026-07-19 01:06:27 +02:00
1 parent bce679b6af
commit 0fa8dbff90
2 files changed
+12 -13

No files matched your search

+4 -3
View File
@@ -138,7 +138,7 @@ export function ProfileMobile() {
gap="0"
alignItems="Center"
justifyContent="SpaceBetween"
style={{ width: '100%', minWidth: '100%', height: '100vh' }}
style={{ width: '100%', minWidth: '100%', background: color.Background.Container }}
>
<PageNavHeader size="600">
<Box grow="Yes" gap="300" justifyContent="Center">
@@ -198,12 +198,13 @@ export function ProfileMobile() {
<Line variant="Surface" size="300" />
<Box direction="Column" style={{ padding: config.space.S100 }}>
<Box direction="Column" gap="100" style={{ padding: config.space.S100 }}>
<MenuItem
size="300"
radii="300"
before={menuIcon(GearSix)}
style={{
position: 'relative',
background: isSettingsOpen ? color.Surface.Container : color.Background.Container,
}}
after={menuIcon(isSettingsOpen && isMobile ? CaretDownIcon : CaretRightIcon)}
@@ -214,7 +215,7 @@ export function ProfileMobile() {
</Text>
</MenuItem>
{isSettingsOpen && (
<Box direction="Column" gap="100" style={{ padding: config.space.S100 }}>
<Box direction="Column" gap="100" style={{ padding: config.space.S100, paddingTop: 0 }}>
{menuItems.map((item) => {
const IconComponent = item.icon;
+8 -10
View File
@@ -274,11 +274,10 @@ export function AccountMenuOption({ isMobile, isRight }: { isMobile: boolean; is
after={isOpen && isMobile ? menuIcon(CaretDownIcon) : menuIcon(CaretRightIcon)}
style={{
position: 'relative',
background: isMobile
? color.Background.Container
: isOpen
? color.Secondary.Container
: color.Surface.Container,
background: isOpen
? (isMobile ? color.Surface.Container
: color.Secondary.Container)
: color.Background.Container,
}}
onClick={() => isMobile && setIsOpen(!isOpen)}
{...hoverProps}
@@ -498,11 +497,10 @@ export function PresenceMenuOption({
after={isOpen && isMobile ? menuIcon(CaretDownIcon) : menuIcon(CaretRightIcon)}
style={{
position: 'relative',
background: isMobile
? color.Background.Container
: isOpen
? color.Secondary.Container
: color.Surface.Container,
background: isOpen
? (isMobile ? color.Surface.Container
: color.Secondary.Container)
: color.Background.Container,
}}
onClick={() => isMobile && setIsOpen(!isOpen)}
{...hoverProps}