Skip to content

Commit b700797

Browse files
authored
Merge pull request #701 from devforth/feature/AdminForth/1798/could-you-please-check-the-but
fix: update button height and wrap text in spans for better styling c…
2 parents 9f8aadd + a19d330 commit b700797

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

adminforth/spa/src/components/ResourceListTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@
364364
:placeholder="pageSizeInternal?.toString()"
365365
class="text-sm min-w-20 af-page-size-button"
366366
classesForInput="
367-
af-page-size-btn h-[34px] min-h-0 py-1 pl-2 pr-6 text-left text-sm font-medium transition-all
367+
af-page-size-btn h-[2.125rem] min-h-0 py-1 pl-2 pr-6 text-left text-sm font-medium transition-all
368368
outline-none cursor-pointer af-button-shadow rounded-default bg-lightListViewButtonBackground
369369
text-lightListViewButtonText border-lightListViewButtonBorder
370370
dark:bg-darkListViewButtonBackground dark:text-darkListViewButtonText dark:border-darkListViewButtonBorder

adminforth/spa/src/views/ListView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
dark:hover:text-darkListViewButtonTextHover dark:hover:bg-darkListViewButtonBackgroundHover rounded-default gap-1"
122122
>
123123
<IconPlusOutline class="w-4 h-4"/>
124-
{{ $t('Create') }}
124+
<span>{{ $t('Create') }}</span>
125125
</RouterLink>
126126

127127
<button
@@ -135,7 +135,7 @@
135135
v-if="coreStore.resource?.options?.allowedActions?.filter"
136136
>
137137
<IconFilterOutline class="w-4 h-4"/>
138-
{{ $t('Filter') }}
138+
<span>{{ $t('Filter') }}</span>
139139
<div v-if="filtersStore.visibleFiltersCount" class="flex items-center gap-1 ms-1">
140140
<span class="bg-red-100 text-red-800 text-xs font-medium px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-red-400 border border-red-400">
141141
{{ filtersStore.visibleFiltersCount }}

adminforth/spa/src/views/ShowView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
:to="nextRecordRoute ?? $route"
1616
@click="handleNextClick()"
1717
:class="!nextRecordRoute ? 'opacity-50 pointer-events-none cursor-not-allowed' : ''"
18-
class="af-button-shadow h-[34px] inline-flex items-center gap-1 px-3 py-2 text-sm font-medium transition-all border outline-none bg-lightListViewButtonBackground text-lightListViewButtonText border-lightListViewButtonBorder dark:bg-darkListViewButtonBackground dark:text-darkListViewButtonText dark:border-darkListViewButtonBorder hover:bg-lightListViewButtonBackgroundHover hover:text-lightListViewButtonTextHover rounded-default dark:hover:text-darkListViewButtonTextHover dark:hover:bg-darkListViewButtonBackgroundHover"
18+
class="af-button-shadow h-[2.125rem] inline-flex items-center gap-1 px-3 py-2 text-sm font-medium transition-all border outline-none bg-lightListViewButtonBackground text-lightListViewButtonText border-lightListViewButtonBorder dark:bg-darkListViewButtonBackground dark:text-darkListViewButtonText dark:border-darkListViewButtonBorder hover:bg-lightListViewButtonBackgroundHover hover:text-lightListViewButtonTextHover rounded-default dark:hover:text-darkListViewButtonTextHover dark:hover:bg-darkListViewButtonBackgroundHover"
1919
>
2020
<Spinner v-if="isFetchingNextPage" class="w-4 h-4 text-gray-200 dark:text-gray-500 fill-gray-500 dark:fill-gray-300" />
2121
{{ $t('Next') }}

0 commit comments

Comments
 (0)