fix(layout): responsive layout for the custom highlight colors options (#2303)

This commit is contained in:
Huang Xin
2025-10-23 17:51:31 +08:00
committed by GitHub
parent a1f6030e75
commit d7e89cc01f
4 changed files with 7 additions and 9 deletions
@@ -101,11 +101,6 @@ export const ColorPanel: React.FC<ColorPanelProps> = ({ actionTab, bottomOffset
className='flex gap-3 overflow-x-auto p-2'
style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }}
>
<style>{`
.theme-scroll::-webkit-scrollbar {
display: none;
}
`}</style>
{themes.map(({ name, label, colors }) => (
<button
key={name}
@@ -63,7 +63,10 @@ const SidebarContent: React.FC<{
>
<OverlayScrollbarsComponent
className='min-h-0 flex-1'
options={{ scrollbars: { autoHide: 'scroll' }, showNativeOverlaidScrollbars: false }}
options={{
scrollbars: { autoHide: 'scroll', clickScroll: true },
showNativeOverlaidScrollbars: false,
}}
defer
>
<div