show edit icon on hover the outer box

pull/133/head
Alex Turchyn 2 years ago committed by DocuSeal
parent 4c99bbb58a
commit e704e6fa04

@ -24,7 +24,7 @@
* *
</span> </span>
<IconPencil <IconPencil
class="cursor-pointer flex-none opacity-0 group-hover/contenteditable:opacity-100 align-middle peer-focus:hidden" class="cursor-pointer flex-none opacity-0 group-hover/contenteditable-container:opacity-100 group-hover/contenteditable:opacity-100 align-middle peer-focus:hidden"
:style="iconInline ? {} : { right: -(1.1 * iconWidth) + 'px' }" :style="iconInline ? {} : { right: -(1.1 * iconWidth) + 'px' }"
title="Edit" title="Edit"
:class="{ 'ml-1': !withRequired, 'absolute': !iconInline, 'inline align-bottom': iconInline }" :class="{ 'ml-1': !withRequired, 'absolute': !iconInline, 'inline align-bottom': iconInline }"

@ -5,7 +5,7 @@
<div <div
class="border border-base-300 rounded rounded-tr-none relative group" class="border border-base-300 rounded rounded-tr-none relative group"
> >
<div class="flex items-center justify-between relative"> <div class="flex items-center justify-between relative group/contenteditable-container">
<div <div
class="absolute top-0 bottom-0 right-0 left-0 cursor-pointer" class="absolute top-0 bottom-0 right-0 left-0 cursor-pointer"
@click="scrollToFirstArea" @click="scrollToFirstArea"

@ -14,7 +14,7 @@
<label <label
v-else v-else
tabindex="0" tabindex="0"
class="cursor-pointer rounded-md p-2 border border-base-300 w-full flex justify-between" class="cursor-pointer group/contenteditable-container rounded-md p-2 border border-base-300 w-full flex justify-between"
> >
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<span <span

Loading…
Cancel
Save