Skip to content

Commit cb4996c

Browse files
committed
Trigger the grid table mode a bit earlier because it's more useful
1 parent 83b33ca commit cb4996c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

resources/css/components/fieldtypes/grid.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
@apply outline-hidden;
5656

5757
> td {
58-
@apply border-b px-2 py-3 align-top dark:border-gray-900;
58+
@apply border-b px-1 @2xl:px-2 py-3 align-top dark:border-gray-900;
5959

6060
&:first-child.grid-cell {
6161
@apply ltr:pl-3 rtl:pr-3;

resources/js/components/fieldtypes/grid/Grid.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default {
8686
8787
computed: {
8888
component() {
89-
const isNarrow = this.fields.length > 1 && this.containerWidth < 600;
89+
const isNarrow = this.fields.length > 1 && this.containerWidth < 550;
9090
9191
return this.config.mode === 'stacked' || isNarrow ? 'GridStacked' : 'GridTable';
9292
},

0 commit comments

Comments
 (0)