mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
Make toast support preventDuplicates (#31501)
make preventDuplicates default to true, users get a clear UI feedback and know that "a new message appears". Fixes: https://github.com/go-gitea/gitea/issues/26651 --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -22,17 +22,31 @@
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.toast-close,
|
||||
.toast-icon {
|
||||
color: currentcolor;
|
||||
.toast-close {
|
||||
border-radius: var(--border-radius);
|
||||
background: transparent;
|
||||
border: none;
|
||||
display: flex;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.toast-icon {
|
||||
display: inline-flex;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.toast-duplicate-number::before {
|
||||
content: "(";
|
||||
}
|
||||
.toast-duplicate-number {
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
user-select: none;
|
||||
}
|
||||
.toast-duplicate-number::after {
|
||||
content: ")";
|
||||
}
|
||||
|
||||
.toast-close:hover {
|
||||
|
Reference in New Issue
Block a user