fix ui height + select auto submit

*remove useless scroll on UI due to footer and absolute <main>
*add type="button" to aria-controls role="listbox" to avoid auto submit on click
This commit is contained in:
Jordan Blasenhauer 2023-12-26 15:21:24 +01:00
parent e348e92bc7
commit 33211902dc
2 changed files with 3 additions and 1 deletions

View file

@ -31,7 +31,7 @@
<!-- info -->
<main
class="absolute xl:pl-75 w-full px-2 sm:px-6 pb-0 pt-20 sm:pt-6 min-h-[80vh] h-full flex flex-col justify-between"
class="xl:pl-75 w-full px-2 sm:px-6 pb-0 pt-20 sm:pt-6 min-h-[80vh] h-full flex flex-col justify-between"
>
<div
class="max-w-[1920px] grid gap-y-4 gap-3 sm:gap-4 lg:gap-6 grid-cols-12 w-full"

View file

@ -105,6 +105,7 @@ data-plugin-item="{{plugin['id']}}"
data-default-value="{{global_config[setting]['value']}}"
data-default-method="{{global_config[setting]['method']}}"
aria-controls="{{value['id']}}-dropdown"
type="button"
class="custom-select-btn"
>
{% for item in value['select'] %} {% if global_config[setting]['value'] and
@ -319,6 +320,7 @@ data-plugin-item="{{plugin['id']}}"
data-setting-select="{{value['id']}}"
data-default-value="{{value['default']}}"
aria-controls="{{value['id']}}-dropdown"
type="button"
class="custom-select-btn"
>
{% for item in value['select'] %} {% if value['default'] == item %}