Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/frontend/editor/assets/remixicons/ri-draggable.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

12 changes: 6 additions & 6 deletions app/frontend/editor/components/section-list/list-item.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<template>
<div
class="bg-gray-100 rounded-md pr-4 flex items-center text-gray-800"
class="bg-gray-100 rounded-md pr-2 flex items-center text-gray-800"
>
<div class="flex flex-col cursor-move px-4 py-3">
<uikit-icon name="ri-expand-up-down-line" />
<div class="flex flex-col cursor-move px-2 py-3">
<uikit-icon name="ri-draggable" />
</div>
<router-link
:to="{ name: 'editSection', params: { sectionId: section.id } }"
class="flex flex-col overflow-hidden py-3"
class="flex flex-col overflow-hidden py-3 pr-2 leading-none"
>
<span :class="{ 'text-gray-800': label }">{{ name | truncate(40) }}</span>
<span class="text-gray-500 text-sm truncate" v-if="label">{{ label | truncate(100) }}</span>
<span :class="{ 'text-gray-500 text-xs': label }">{{ name | truncate(40) }}</span>
<span class="text-gray-800 truncate" v-if="label">{{ label | truncate(100) }}</span>
</router-link>
<uikit-confirmation-button
@confirm="removeSection(section.id)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default {
group: 'description',
disabled: false,
ghostClass: 'ghost',
handle: '.cursor-move',
}
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<template>
<div
class="bg-gray-100 rounded-md px-4 py-3 flex items-center justify-between text-gray-800"
:class="{ 'cursor-move': isList }"
class="bg-gray-100 rounded-md pr-2 flex items-center text-gray-800"
:class="{ 'pl-4': !isList }"
>
<div class="flex flex-col cursor-move px-2 py-3" v-if="isList">
<uikit-icon name="ri-draggable" />
</div>
<router-link
:to="{
name: 'editSectionBlock',
params: { sectionBlockId: sectionBlock.id },
}"
class="flex items-center"
class="flex items-center py-3 overflow-hidden"
>
<div class="h-8 w-8 bg-gray-400 mr-3" v-if="image">
<img
Expand All @@ -18,9 +21,9 @@
@load="() => (imageLoaded = true)"
/>
</div>
<span>{{ label | truncate(40) }}</span>
<span class="truncate">{{ label | truncate(40) }}</span>
</router-link>
<div class="flex items-center">
<div class="flex items-center ml-auto pl-2">
<slot name="actions"></slot>
<uikit-confirmation-button
@confirm="removeSectionBlock(sectionBlock.id)"
Expand Down