Skip to content

Commit 133cdb4

Browse files
committed
fix: move column name at the start of row for the show/edit/create views
https://web.tracklify.com/project/2b7ZVgE5/AdminForth/1228/BBMiKsfJ/we-need-to-adjust-row-title-at
1 parent d2fa912 commit 133cdb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adminforth/spa/src/components/GroupsTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class="bg-lightForm dark:bg-darkForm dark:border-darkFormBorder block md:table-row"
2323
:class="{ 'border-b': i !== group.columns.length - 1}"
2424
>
25-
<td class="px-6 py-4 flex items-center block md:table-cell pb-0 md:pb-4"
25+
<td class="px-6 py-4 flex items-center block pb-0 md:pb-4"
2626
:class="{'rounded-bl-lg border-b-none': i === group.columns.length - 1}"> <!--align-top-->
2727
<span class="flex items-center gap-1">
2828
{{ column.label }}

adminforth/spa/src/components/ShowTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
:record="coreStore.record"
3333
/>
3434
<template v-else-if="checkShowIf(column, record, resource?.columns || [])">
35-
<td class="px-6 py-4 relative block md:table-cell font-bold md:font-normal pb-0 md:pb-4">
35+
<td class="px-6 py-4 relative block flex justify-start font-bold md:font-normal pb-0 md:pb-4">
3636
{{ column.label }}
3737
</td>
3838
<td class="px-6 py-4 whitespace-pre-wrap" :data-af-column="column.name">

0 commit comments

Comments
 (0)