From c57e0eed3406ec9022f189c923502facbec3aed7 Mon Sep 17 00:00:00 2001 From: Tormak <63308171+Tormak9970@users.noreply.github.com> Date: Wed, 1 Feb 2023 15:25:23 -0600 Subject: [PATCH] refactor: changes to improve deck cohesion --- src/custom-components/ReorderableList.tsx | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/custom-components/ReorderableList.tsx b/src/custom-components/ReorderableList.tsx index e202355..21ab60f 100644 --- a/src/custom-components/ReorderableList.tsx +++ b/src/custom-components/ReorderableList.tsx @@ -1,6 +1,6 @@ import { Fragment, JSXElementConstructor, ReactElement, useState } from "react" import { FaEllipsisH } from "react-icons/fa" -import { DialogButton, Field, Focusable, GamepadButton, gamepadDialogClasses, quickAccessControlsClasses } from "../deck-components" +import { DialogButton, Field, Focusable, GamepadButton } from "../deck-components" export type ReorderableEntry = { label: string, @@ -47,27 +47,12 @@ export function ReorderableList(props: ListProps) { justify-content: flex-start; align-content: stretch; } - .reorderable-list .${quickAccessControlsClasses.PanelSection} { - padding: 0px; - } - - .reorderable-list .${gamepadDialogClasses.FieldChildren} { - margin: 0px 16px; - } - - .reorderable-list .${gamepadDialogClasses.FieldLabel} { - margin-left: 16px; - } .reorderable-list .custom-buttons { width: inherit; height: inherit; display: inherit; } - - .reorderable-list .custom-buttons .${gamepadDialogClasses.FieldChildren} { - margin: 0px 16px; - } `}
(props: ListEntryProps) { {props.children} - props.onAction(props.entryData)} onOKButton={() => props.onAction(props.entryData)}> + props.onAction(props.entryData)} onOKButton={() => props.onAction(props.entryData)}>