style: command viewer scroller

This commit is contained in:
jialin
2026-01-07 15:55:26 +08:00
parent 8f9fae9210
commit bbf09c2ea9
21 changed files with 136 additions and 153 deletions
+11 -2
View File
@@ -13,7 +13,9 @@ const CollapseInner = styled(Collapse)`
border-radius: var(--border-radius-base) !important;
font-size: 14px !important;
font-weight: 600 !important;
background-color: var(--ant-color-fill-tertiary) !important;
&:hover {
background-color: var(--ant-color-fill-tertiary) !important;
}
}
.ant-collapse-body {
@@ -32,7 +34,8 @@ const CollapsePanel: React.FC<{
activeKey: string | string[];
accordion?: boolean;
onChange?: (key: string | string[]) => void;
}> = ({ items, activeKey, accordion, onChange }) => {
styles?: Record<string, React.CSSProperties>;
}> = ({ items, activeKey, accordion, onChange, styles }) => {
return (
<CollapseInner
expandIconPlacement="start"
@@ -42,6 +45,12 @@ const CollapsePanel: React.FC<{
activeKey={activeKey}
onChange={onChange}
destroyOnHidden={false}
styles={{
...styles,
header: {
backgroundColor: 'var(--ant-collapse-header-bg)'
}
}}
expandIcon={({ isActive }) => (
<IconFont
type="icon-down"
+1 -1
View File
@@ -48,7 +48,7 @@ const Header = styled.div`
padding-inline: 10px;
font-size: 14px;
border-bottom: 1px solid var(--ant-color-border);
background-color: var(--ant-color-fill-tertiary);
background-color: var(--ant-color-fill-quaternary);
`;
interface ViewerProps {