fix: #1423 should not scroll right when dragging side bar items

This commit is contained in:
Yidadaa 2023-05-14 02:21:35 +08:00
parent d9be63e6cb
commit 6da3aab046

View File

@ -186,7 +186,7 @@
.chat-item-delete { .chat-item-delete {
position: absolute; position: absolute;
top: 10px; top: 10px;
right: -20px; right: 0;
transition: all ease 0.3s; transition: all ease 0.3s;
opacity: 0; opacity: 0;
cursor: pointer; cursor: pointer;
@ -194,7 +194,7 @@
.chat-item:hover > .chat-item-delete { .chat-item:hover > .chat-item-delete {
opacity: 0.5; opacity: 0.5;
right: 10px; transform: translateX(-10px);
} }
.chat-item:hover > .chat-item-delete:hover { .chat-item:hover > .chat-item-delete:hover {