mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-02-10 11:40:28 +08:00
fix: correct sidebar card horizontal offset issue
This commit is contained in:
parent
7b7333d271
commit
0e0b337a8b
@ -261,17 +261,19 @@ const App: React.FC = () => {
|
||||
<div className="mt-2 mx-2">
|
||||
<OutboundModeSwitcher />
|
||||
</div>
|
||||
<DndContext sensors={sensors} collisionDetection={closestCorners} onDragEnd={onDragEnd}>
|
||||
<div className="grid grid-cols-2 gap-2 m-2">
|
||||
<SortableContext items={order}>
|
||||
{order.map((key: string) => {
|
||||
const Component = componentMap[key]
|
||||
if (!Component) return null
|
||||
return <Component key={key} />
|
||||
})}
|
||||
</SortableContext>
|
||||
</div>
|
||||
</DndContext>
|
||||
<div style={{ overflowX: 'clip' }}>
|
||||
<DndContext sensors={sensors} collisionDetection={closestCorners} onDragEnd={onDragEnd}>
|
||||
<div className="grid grid-cols-2 gap-2 m-2">
|
||||
<SortableContext items={order}>
|
||||
{order.map((key: string) => {
|
||||
const Component = componentMap[key]
|
||||
if (!Component) return null
|
||||
return <Component key={key} />
|
||||
})}
|
||||
</SortableContext>
|
||||
</div>
|
||||
</DndContext>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user