fix: mobile UI (#2569)

* improve mobile ui

* general cleanup

* cleanup, improvements

* fix hydration mismatch
This commit is contained in:
Bernd Storath
2026-04-07 11:34:49 +02:00
committed by GitHub
parent b5c30f5dbe
commit cd9db1563d
24 changed files with 97 additions and 100 deletions
+6 -14
View File
@@ -12,23 +12,15 @@
class="rounded-lg border-2 border-gray-100 text-gray-500 focus:border-red-800 focus:outline-0 focus:ring-0 dark:border-neutral-800 dark:bg-neutral-700 dark:text-neutral-200 dark:placeholder:text-neutral-400"
@input="update($event, i)"
/>
<BaseSecondaryButton
as="input"
type="button"
class="rounded-lg"
value="-"
@click="del(i)"
/>
<BaseSecondaryButton type="button" class="rounded-lg" @click="del(i)">
{{ '-' }}
</BaseSecondaryButton>
</div>
</div>
<div class="mt-2">
<BasePrimaryButton
as="input"
type="button"
class="rounded-lg"
:value="$t('form.add')"
@click="add"
/>
<BasePrimaryButton type="button" class="rounded-lg" @click="add">
{{ $t('form.add') }}
</BasePrimaryButton>
</div>
</div>
</template>
+2 -2
View File
@@ -1,10 +1,10 @@
<template>
<h4 class="col-span-full flex items-center py-6 text-2xl">
<h3 class="col-span-full flex items-center py-6 text-2xl">
<slot />
<BaseTooltip v-if="description" :text="description">
<IconsInfo class="size-4" />
</BaseTooltip>
</h4>
</h3>
</template>
<script lang="ts" setup>
+3 -3
View File
@@ -1,7 +1,7 @@
<template>
<RLabel :for="props.for" class="md:align-middle md:leading-10"
><slot
/></RLabel>
<RLabel :for="props.for" class="md:leading-[2.75rem]">
<slot />
</RLabel>
</template>
<script lang="ts" setup>
+6 -14
View File
@@ -12,23 +12,15 @@
class="rounded-lg border-2 border-gray-100 text-gray-500 focus:border-red-800 focus:outline-0 focus:ring-0 dark:border-neutral-800 dark:bg-neutral-700 dark:text-neutral-200 dark:placeholder:text-neutral-400"
@input="update($event, i)"
/>
<BaseSecondaryButton
as="input"
type="button"
class="rounded-lg"
value="-"
@click="del(i)"
/>
<BaseSecondaryButton type="button" class="rounded-lg" @click="del(i)">
{{ '-' }}
</BaseSecondaryButton>
</div>
</div>
<div class="mt-2">
<BasePrimaryButton
as="input"
type="button"
class="rounded-lg"
:value="$t('form.add')"
@click="add"
/>
<BasePrimaryButton type="button" class="rounded-lg" @click="add">
{{ $t('form.add') }}
</BasePrimaryButton>
</div>
</div>
</template>
+3 -1
View File
@@ -7,7 +7,9 @@
<IconsInfo class="size-4" />
</BaseTooltip>
</div>
<BaseSwitch :id="id" v-model="data" />
<div class="my-auto">
<BaseSwitch :id="id" v-model="data" />
</div>
</template>
<script lang="ts" setup>