From d06b7411dc828b1afcc100b439ff483106c2ab74 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 19 Aug 2022 01:26:45 -0400 Subject: [PATCH] Move options associated with specific categories into their div --- public/options/options.css | 8 +++ public/options/options.html | 24 --------- .../CategoryChooserComponent.tsx | 4 +- .../CategorySkipOptionsComponent.tsx | 46 +++++++++++++++-- .../{ => options}/KeybindComponent.tsx | 6 +-- .../{ => options}/KeybindDialogComponent.tsx | 6 +-- .../options/ToggleOptionComponent.tsx | 51 +++++++++++++++++++ src/options.ts | 2 +- src/render/CategoryChooser.tsx | 2 +- 9 files changed, 111 insertions(+), 38 deletions(-) rename src/components/{ => options}/CategoryChooserComponent.tsx (95%) rename src/components/{ => options}/CategorySkipOptionsComponent.tsx (82%) rename src/components/{ => options}/KeybindComponent.tsx (94%) rename src/components/{ => options}/KeybindDialogComponent.tsx (98%) create mode 100644 src/components/options/ToggleOptionComponent.tsx diff --git a/public/options/options.css b/public/options/options.css index a2a829a1..36f4d5d7 100644 --- a/public/options/options.css +++ b/public/options/options.css @@ -123,6 +123,14 @@ html, body { border-image: linear-gradient(to right, var(--border-color), #00000000 80%) 1; } +.categoryExtraOptions { + padding-bottom: 20px; +} + +#music_offtopic_autoSkipOnMusicVideos { + padding-bottom: 0; +} + .option-group > div:last-child, .option-group > #keybind-dialog { border-bottom: inherit; } diff --git a/public/options/options.html b/public/options/options.html index 45a84b75..150212ce 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -66,30 +66,6 @@ -
-
- - -
-
- -
-
- - -
-
-