fix: restore room nav styling

This commit is contained in:
7w1 committed 2026-05-13 12:32:08 -05:00
1 parent 6ab22b487c
commit d9fbf724ef
4 files changed
+17 -8

No files matched your search

+2 -2
View File
@@ -107,8 +107,8 @@ export const NavItem = recipe({
export type RoomSelectorVariants = RecipeVariants<typeof NavItem>;
export const NavItemContent = style({
paddingLeft: config.space.S300,
paddingRight: config.space.S200,
paddingLeft: config.space.S200,
paddingRight: config.space.S300,
height: 'inherit',
minWidth: 0,
flexGrow: 1,
@@ -10,7 +10,7 @@ export const RoomNavCategoryButton = as<'button', { closed?: boolean }>(
className={classNames(css.CategoryButton, className)}
variant="Background"
radii="400"
before={
after={
<Icon
className={css.CategoryButtonIcon}
size="50"
+8 -1
View File
@@ -419,7 +419,14 @@ export function RoomNavItem({
style={hideTextStyling(hideText)}
>
<NavItemContent style={hideTextStyling(hideText)}>
<Box as="span" grow="Yes" alignItems="Center" style={hideTextStyling(hideText)}>
<Box
as="span"
grow="Yes"
alignItems="Center"
justifyContent="Start"
gap="200"
style={hideTextStyling(hideText)}
>
<AvatarPresence
badge={
presence &&
+6 -4
View File
@@ -779,10 +779,11 @@ export function Space() {
<NavItem variant="Background" radii="400" aria-selected={lobbySelected}>
<NavLink to={getSpaceLobbyPath(getCanonicalAliasOrRoomId(mx, space.roomId))}>
<NavItemContent>
<Box as="span" grow="Yes" alignItems="Center" gap="200">
<Box as="span" grow="Yes" alignItems="Center" justifyContent="Start" gap="200">
<Avatar
size={hideText ? undefined : '200'}
radii="400"
style={hideText ? { width: '100%', padding: '0' } : { height: '100%' }}
style={hideText ? { width: '100%', padding: '0' } : undefined}
>
<Icon src={Icons.Flag} size="100" filled={lobbySelected} />
</Avatar>
@@ -800,10 +801,11 @@ export function Space() {
<NavItem variant="Background" radii="400" aria-selected={searchSelected}>
<NavLink to={getSpaceSearchPath(getCanonicalAliasOrRoomId(mx, space.roomId))}>
<NavItemContent>
<Box as="span" grow="Yes" alignItems="Center" gap="200">
<Box as="span" grow="Yes" alignItems="Center" justifyContent="Start" gap="200">
<Avatar
size={hideText ? undefined : '200'}
radii="400"
style={hideText ? { width: '100%' } : { height: '100%' }}
style={hideText ? { width: '100%' } : undefined}
>
<Icon src={Icons.Search} size="100" filled={searchSelected} />
</Avatar>