refactor: remove unused classnames

This commit is contained in:
kunish 2023-09-10 15:33:32 +08:00
parent fccc31a327
commit 392f20932d
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -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>