mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 17:25:34 +08:00
refactor: remove unused classnames
This commit is contained in:
parent
fccc31a327
commit
392f20932d
@ -76,7 +76,7 @@ export const ConnectionsTableOrderingModal = (props: {
|
|||||||
'transition-transform': !!state.active.draggable,
|
'transition-transform': !!state.active.draggable,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="m-1 flex cursor-grab justify-between p-1">
|
<div class="my-1 flex cursor-grab justify-between p-1">
|
||||||
<span class="select-none">{t(key)}</span>
|
<span class="select-none">{t(key)}</span>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@ -96,21 +96,21 @@ export const ConnectionsTableOrderingModal = (props: {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<dialog id="connections-table-ordering-modal" class="modal">
|
<dialog id="connections-table-ordering-modal" class="modal">
|
||||||
<div class="modal-box w-80">
|
<div class="modal-box w-80" onContextMenu={(e) => e.preventDefault()}>
|
||||||
<DragDropProvider
|
<DragDropProvider
|
||||||
onDragStart={onDragStart}
|
onDragStart={onDragStart}
|
||||||
onDragEnd={onDragEnd as DragEventHandler}
|
onDragEnd={onDragEnd as DragEventHandler}
|
||||||
collisionDetector={closestCenter}
|
collisionDetector={closestCenter}
|
||||||
>
|
>
|
||||||
<DragDropSensors />
|
<DragDropSensors />
|
||||||
<div class="column self-stretch">
|
|
||||||
<SortableProvider ids={props.order}>
|
<SortableProvider ids={props.order}>
|
||||||
<For each={props.order}>{(key) => <FormRow key={key} />}</For>
|
<For each={props.order}>{(key) => <FormRow key={key} />}</For>
|
||||||
</SortableProvider>
|
</SortableProvider>
|
||||||
</div>
|
|
||||||
<DragOverlay>
|
<DragOverlay>
|
||||||
<Show when={activeKey()}>
|
<Show when={activeKey()}>
|
||||||
<div class="sortable">{t(activeKey()!)}</div>
|
<div>{t(activeKey()!)}</div>
|
||||||
</Show>
|
</Show>
|
||||||
</DragOverlay>
|
</DragOverlay>
|
||||||
</DragDropProvider>
|
</DragDropProvider>
|
||||||
|
Loading…
Reference in New Issue
Block a user