✨(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 { text } from '@/primitives/Text.tsx'
|
||||||
import { Heading } from 'react-aria-components'
|
import { Heading } from 'react-aria-components'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
import {
|
||||||
|
RiAccountCircleLine,
|
||||||
|
RiSettings3Line,
|
||||||
|
RiSpeakerLine,
|
||||||
|
} from '@remixicon/react'
|
||||||
|
|
||||||
const tabsStyle = css({
|
const tabsStyle = css({
|
||||||
maxHeight: '40.625rem', // fixme size copied from meet settings modal
|
maxHeight: '40.625rem', // fixme size copied from meet settings modal
|
||||||
@@ -45,13 +50,16 @@ export const SettingsDialogExtended = (props: SettingsDialogExtended) => {
|
|||||||
{t('dialog.heading')}
|
{t('dialog.heading')}
|
||||||
</Heading>
|
</Heading>
|
||||||
<TabList border={false} aria-label="Chat log orientation example">
|
<TabList border={false} aria-label="Chat log orientation example">
|
||||||
<Tab highlight id="1">
|
<Tab icon highlight id="1">
|
||||||
|
<RiAccountCircleLine />
|
||||||
{t('tabs.account')}
|
{t('tabs.account')}
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab highlight id="2">
|
<Tab icon highlight id="2">
|
||||||
|
<RiSpeakerLine />
|
||||||
{t('tabs.audio')}
|
{t('tabs.audio')}
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab highlight id="3">
|
<Tab icon highlight id="3">
|
||||||
|
<RiSettings3Line />
|
||||||
{t('tabs.general')}
|
{t('tabs.general')}
|
||||||
</Tab>
|
</Tab>
|
||||||
</TabList>
|
</TabList>
|
||||||
|
|||||||
@@ -75,9 +75,17 @@ const StyledTab = styled(RACTab, {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
icon: {
|
||||||
|
true: {
|
||||||
|
display: 'flex',
|
||||||
|
gap: '1rem',
|
||||||
|
alignItems: 'center',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
border: true,
|
border: true,
|
||||||
|
icon: false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user