fix: 排序下拉菜单防止溢出侧边栏
添加 left: 'auto' 覆盖父级 left 定位影响,配合已有的 right-0 确保菜单右对齐不向右溢出编辑区。
This commit is contained in:
parent
b8169347a4
commit
42c9ac54c1
@ -290,7 +290,7 @@ export function Sidebar() {
|
||||
{sortMenuOpen && (
|
||||
<div
|
||||
className="absolute right-0 top-full mt-1 rounded-lg py-1 z-50 shadow-xl"
|
||||
style={{ background: 'var(--bg)', border: '1px solid var(--border)', minWidth: 140 }}
|
||||
style={{ background: 'var(--bg)', border: '1px solid var(--border)', minWidth: 140, left: 'auto' }}
|
||||
onClick={e => e.stopPropagation()}
|
||||
>
|
||||
{SORT_OPTIONS.map(opt => (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user