✨(frontend) add icons in SettingsDialogExtended tabs
Made it user friendly by adding icons. It follows other videconference tools designs.
This commit is contained in:
committed by
aleb_the_flash
parent
f3c4b0ac40
commit
eb90c0f28c
@@ -4,6 +4,11 @@ import { css } from '@/styled-system/css'
|
||||
import { text } from '@/primitives/Text.tsx'
|
||||
import { Heading } from 'react-aria-components'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import {
|
||||
RiAccountCircleLine,
|
||||
RiSettings3Line,
|
||||
RiSpeakerLine,
|
||||
} from '@remixicon/react'
|
||||
|
||||
const tabsStyle = css({
|
||||
maxHeight: '40.625rem', // fixme size copied from meet settings modal
|
||||
@@ -45,13 +50,16 @@ export const SettingsDialogExtended = (props: SettingsDialogExtended) => {
|
||||
{t('dialog.heading')}
|
||||
</Heading>
|
||||
<TabList border={false} aria-label="Chat log orientation example">
|
||||
<Tab highlight id="1">
|
||||
<Tab icon highlight id="1">
|
||||
<RiAccountCircleLine />
|
||||
{t('tabs.account')}
|
||||
</Tab>
|
||||
<Tab highlight id="2">
|
||||
<Tab icon highlight id="2">
|
||||
<RiSpeakerLine />
|
||||
{t('tabs.audio')}
|
||||
</Tab>
|
||||
<Tab highlight id="3">
|
||||
<Tab icon highlight id="3">
|
||||
<RiSettings3Line />
|
||||
{t('tabs.general')}
|
||||
</Tab>
|
||||
</TabList>
|
||||
|
||||
@@ -75,9 +75,17 @@ const StyledTab = styled(RACTab, {
|
||||
},
|
||||
},
|
||||
},
|
||||
icon: {
|
||||
true: {
|
||||
display: 'flex',
|
||||
gap: '1rem',
|
||||
alignItems: 'center',
|
||||
},
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
border: true,
|
||||
icon: false,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user