mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 13:59:28 +08:00
refactor(styles): enhance popover styles with border and content overflow handling; update AntdProvider for background mask color
This commit is contained in:
parent
a92fa1b1ba
commit
1124090d87
@ -216,6 +216,19 @@
|
|||||||
.ant-dropdown-arrow + .ant-dropdown-menu {
|
.ant-dropdown-arrow + .ant-dropdown-menu {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
.ant-popover-inner {
|
||||||
|
border: 0.5px solid var(--color-border);
|
||||||
|
border-radius: 16px;
|
||||||
|
.ant-popover-inner-content {
|
||||||
|
max-height: 70vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.ant-popover-arrow + .ant-popover-content {
|
||||||
|
.ant-popover-inner {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.ant-collapse {
|
.ant-collapse {
|
||||||
border: 1px solid var(--color-border);
|
border: 1px solid var(--color-border);
|
||||||
|
|||||||
@ -67,7 +67,8 @@ const AntdProvider: FC<PropsWithChildren> = ({ children }) => {
|
|||||||
},
|
},
|
||||||
token: {
|
token: {
|
||||||
colorPrimary: colorPrimary,
|
colorPrimary: colorPrimary,
|
||||||
fontFamily: 'var(--font-family)'
|
fontFamily: 'var(--font-family)',
|
||||||
|
colorBgMask: _theme === 'dark' ? 'rgba(0,0,0,0.7)' : 'rgba(255,255,255,0.7)'
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@ -13,6 +13,7 @@ interface Props {
|
|||||||
const SettingButton: FC<Props> = ({ ToolbarButton }) => {
|
const SettingButton: FC<Props> = ({ ToolbarButton }) => {
|
||||||
return (
|
return (
|
||||||
<Popover
|
<Popover
|
||||||
|
arrow={false}
|
||||||
placement="topLeft"
|
placement="topLeft"
|
||||||
content={<SettingsTab />}
|
content={<SettingsTab />}
|
||||||
trigger="click"
|
trigger="click"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user