mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 11:44: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 {
|
||||
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 {
|
||||
border: 1px solid var(--color-border);
|
||||
|
||||
@ -67,7 +67,8 @@ const AntdProvider: FC<PropsWithChildren> = ({ children }) => {
|
||||
},
|
||||
token: {
|
||||
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}
|
||||
|
||||
@ -13,6 +13,7 @@ interface Props {
|
||||
const SettingButton: FC<Props> = ({ ToolbarButton }) => {
|
||||
return (
|
||||
<Popover
|
||||
arrow={false}
|
||||
placement="topLeft"
|
||||
content={<SettingsTab />}
|
||||
trigger="click"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user