Merge pull request #1491 from Yidadaa/bugfix-0514

fix: #1423 should not scroll right when dragging side bar items
This commit is contained in:
Yifei Zhang 2023-05-14 22:57:01 +08:00 committed by GitHub
commit cada0aa70b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {