File tree Expand file tree Collapse file tree 4 files changed +85
-137
lines changed
components/form-components Expand file tree Collapse file tree 4 files changed +85
-137
lines changed Original file line number Diff line number Diff line change 57
57
filter =" .not-draggable"
58
58
:animation =" 200"
59
59
:disabled =" !adminPreview"
60
- handle =" .handle"
61
60
@change =" handleDragDropped"
62
61
>
63
62
<template #item =" {element } " >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <div class =" p-4 border-b border-gray-300 sticky top-0 z-10 bg-white" >
4
- <div class =" flex" >
5
- <button
6
- class =" text-gray-500 hover:text-gray-900 cursor-pointer"
3
+ <div class =" p-2 border-b border-gray-300 sticky top-0 z-10 bg-white" >
4
+ <div class =" flex items-center" >
5
+ <UButton
6
+ size =" sm"
7
+ color =" gray"
8
+ icon =" i-heroicons-x-mark-20-solid"
9
+ variant =" ghost"
7
10
@click =" closeSidebar"
8
- >
9
- <Icon
10
- name =" heroicons:x-mark-20-solid"
11
- class =" inline w-6 h-6"
12
- />
13
- </button >
11
+ />
14
12
<div class =" font-medium inline ml-2 flex-grow truncate" >
15
13
Add Block
16
14
</div >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <div class =" px-4 py -2 border-b sticky top-0 z-10 bg-white" >
4
- <button
3
+ <div class =" p -2 border-b sticky top-0 z-10 bg-white" >
4
+ <UButton
5
5
v-if =" !field"
6
- class =" text-gray-500 hover:text-gray-900 cursor-pointer"
7
- @click.prevent =" closeSidebar"
8
- >
9
- <Icon
10
- name =" heroicons:x-mark-solid"
11
- class =" h-6 w-6"
12
- />
13
- </button >
6
+ size =" sm"
7
+ color =" gray"
8
+ icon =" i-heroicons-x-mark-20-solid"
9
+ variant =" ghost"
10
+ @click =" closeSidebar"
11
+ />
14
12
<template v-else >
15
13
<div class =" flex" >
16
- <button
17
- class =" text-gray-500 hover:text-gray-900 cursor-pointer"
18
- @click.prevent =" closeSidebar"
19
- >
20
- <Icon
21
- name =" heroicons:x-mark-solid"
22
- class =" h-6 w-6"
23
- />
24
- </button >
14
+ <UButton
15
+ size =" sm"
16
+ color =" gray"
17
+ icon =" i-heroicons-x-mark-20-solid"
18
+ variant =" ghost"
19
+ @click =" closeSidebar"
20
+ />
25
21
<div class =" ml-2 flex flex-grow items-center space-between min-w-0 gap-x-3" >
26
22
<div class =" flex-grow" />
27
23
<BlockTypeIcon
You can’t perform that action at this time.
0 commit comments