feat: disable select menu text

This commit is contained in:
kangfenmao 2024-12-16 14:39:54 +08:00
parent ff935a656e
commit 978f1342e4
8 changed files with 8 additions and 1 deletions

View File

@ -290,6 +290,7 @@ const Tabs = styled(TabsAntd)<{ $language: string }>`
padding: 7px 15px !important;
border: 0.5px solid transparent;
justify-content: ${({ $language }) => ($language.startsWith('zh') ? 'center' : 'flex-start')};
user-select: none;
.ant-tabs-tab-btn {
white-space: nowrap;
overflow: hidden;

View File

@ -221,6 +221,7 @@ const SideNav = styled.div`
width: var(--assistants-width);
border-right: 0.5px solid var(--color-border);
padding: 7px 12px;
user-select: none;
.ant-menu {
border-inline-end: none !important;

View File

@ -124,6 +124,7 @@ const TitleText = styled.span`
margin-left: 5px;
font-family: Ubuntu;
font-size: 13px;
user-select: none;
`
export default HeaderNavbar

View File

@ -175,6 +175,7 @@ const Container = styled(Scrollbar)`
display: flex;
flex-direction: column;
padding-top: 11px;
user-select: none;
`
const AssistantItem = styled.div`

View File

@ -227,6 +227,7 @@ const Container = styled(Scrollbar)`
display: flex;
flex-direction: column;
padding-top: 11px;
user-select: none;
`
const TopicListItem = styled.div`

View File

@ -172,6 +172,7 @@ const Segmented = styled(AntSegmented)`
height: 34px;
line-height: 34px;
background-color: transparent;
user-select: none;
}
.ant-segmented-item-selected {
background-color: var(--color-background-soft);

View File

@ -61,7 +61,7 @@ const GeneralSettings: FC = () => {
const languagesOptions: { value: LanguageVarious; label: string; flag: string }[] = [
{ value: 'zh-CN', label: '中文', flag: '🇨🇳' },
{ value: 'zh-TW', label: '中文(繁体)', flag: '🇹🇼' },
{ value: 'zh-TW', label: '中文(繁体)', flag: '🇭🇰' },
{ value: 'en-US', label: 'English', flag: '🇺🇸' },
{ value: 'ru-RU', label: 'Russian', flag: '🇷🇺' }
]

View File

@ -115,6 +115,7 @@ const SettingMenus = styled.ul`
min-width: var(--settings-width);
border-right: 0.5px solid var(--color-border);
padding: 10px;
user-select: none;
`
const MenuItemLink = styled(Link)`