Skip to content

Commit

Permalink
💄 Remove solo stacked grid drag handle header. Closes #1432.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcdade committed Apr 3, 2020
1 parent 1334d4b commit a821f93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/js/components/fieldtypes/grid/StackedRow.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>

<div
class="bg-grey-20 shadow mb-2 rounded border"
class="bg-grey-10 shadow-sm mb-2 rounded border"
:class="[sortableItemClass, { 'opacity-50': isExcessive }]"
>
<div
class="cursor-move bg-grey-30 border-b px-2 py-1 text-sm flex items-center justify-between outline-none"
:class="{ [sortableHandleClass]: grid.isReorderable }"
class="grid-item-header"
:class="{ [sortableHandleClass]: grid.isReorderable, 'hidden': ! grid.isReorderable }"
>
{{ index }}
<span class="icon icon-cross cursor-pointer" @click="$emit('removed', index)" />
Expand Down
8 changes: 8 additions & 0 deletions resources/sass/components/fieldtypes/grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@
@apply w-8 pl-0 text-center;
padding-top: 21px; // pseudo-center for text/select fields
}

.grid-item-header {
@apply bg-grey-20 border-b px-2 py-1 text-sm flex items-center justify-between outline-none cursor-move;
}

.grid-stacked .input-text {
@apply bg-white;
}

0 comments on commit a821f93

Please sign in to comment.