show edit icon on hover the outer box
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
*
|
||||
</span>
|
||||
<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' }"
|
||||
title="Edit"
|
||||
:class="{ 'ml-1': !withRequired, 'absolute': !iconInline, 'inline align-bottom': iconInline }"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div
|
||||
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
|
||||
class="absolute top-0 bottom-0 right-0 left-0 cursor-pointer"
|
||||
@click="scrollToFirstArea"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<label
|
||||
v-else
|
||||
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">
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user