mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 21:03:19 +03:00
Changed user dropdown to include icon and removed font size
This commit is contained in:
parent
99f40e28cb
commit
e045ab605b
2 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,5 @@
|
|||
.root {
|
||||
button {
|
||||
border: none;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Menu, Dropdown, Button, Space } from 'antd';
|
||||
import { DownOutlined } from '@ant-design/icons';
|
||||
import { CaretDownOutlined, UserOutlined } from '@ant-design/icons';
|
||||
import { useRecoilState, useRecoilValue } from 'recoil';
|
||||
import { useState } from 'react';
|
||||
import Modal from '../../ui/Modal/Modal';
|
||||
|
@ -48,10 +48,10 @@ export default function UserDropdown({ username: defaultUsername, chatState }: P
|
|||
return (
|
||||
<div className={`${s.root}`}>
|
||||
<Dropdown overlay={menu} trigger={['click']}>
|
||||
<Button>
|
||||
<Button icon={<UserOutlined style={{ marginRight: '.5rem' }} />}>
|
||||
<Space>
|
||||
{username}
|
||||
<DownOutlined />
|
||||
<CaretDownOutlined />
|
||||
</Space>
|
||||
</Button>
|
||||
</Dropdown>
|
||||
|
|
Loading…
Reference in a new issue