Skip to content

Commit

Permalink
Step wrap behaviour in editing; removed padding from editing mode.
Browse files Browse the repository at this point in the history
hover:whitespace-normal will make the content wrap;
  • Loading branch information
MrCoder committed May 21, 2024
1 parent 42234a7 commit fbe044f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
ref="messageRef"
>
<div
class="name group flex-grow relative text-sm hover:whitespace-normal hover:text-skin-message-hover hover:bg-skin-message-hover"
class="name group flex-grow relative text-sm hover:text-skin-message-hover hover:bg-skin-message-hover"
>
<div class="inline-block static min-h-[1em]">
<div :style="textStyle" :class="classNames">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title="Double click to edit"
class="px-1 cursor-text right hover:text-skin-message-hover hover:bg-skin-message-hover"
:class="{
'py-1 px-2 ml-1 cursor-text': editing,
'cursor-text': editing,
'absolute right-1/2 translate-x-1/2 bottom-0': editing && !isSelfAsync,
}"
:contenteditable="editing"
Expand Down

0 comments on commit fbe044f

Please sign in to comment.