mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-22 21:50:13 +00:00
feat: add duplicate detection modes and UI enhancements for managing duplicates
This commit is contained in:
@@ -200,6 +200,21 @@
|
||||
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(139, 184, 255, 0.12);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .list-item.duplicate-group-item {
|
||||
background: hsl(var(--duplicate-group-hue) 34% 18%);
|
||||
border-color: hsl(var(--duplicate-group-hue) 28% 30%);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .list-item.duplicate-group-item:hover {
|
||||
background: hsl(var(--duplicate-group-hue) 36% 21%);
|
||||
border-color: hsl(var(--duplicate-group-hue) 34% 38%);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .list-item.duplicate-group-item.active {
|
||||
background: hsl(var(--duplicate-group-hue) 38% 24%);
|
||||
border-color: hsl(var(--duplicate-group-hue) 42% 48%);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .card-brand-icon {
|
||||
color: #bfdbfe;
|
||||
background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
|
||||
|
||||
@@ -319,6 +319,10 @@
|
||||
@apply h-[42px] w-full min-w-0 rounded-[14px];
|
||||
}
|
||||
|
||||
.list-head .duplicate-mode-head-select {
|
||||
@apply h-[34px] min-w-0 w-auto max-w-full rounded-full;
|
||||
}
|
||||
|
||||
.list-icon-btn {
|
||||
@apply w-auto min-w-0 gap-1.5 whitespace-nowrap px-3 py-0 text-[13px];
|
||||
}
|
||||
@@ -329,6 +333,11 @@
|
||||
gap: var(--actions-gap);
|
||||
}
|
||||
|
||||
.toolbar.actions.duplicates-toolbar {
|
||||
@apply justify-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.actions {
|
||||
gap: var(--actions-gap);
|
||||
}
|
||||
|
||||
@@ -184,8 +184,45 @@
|
||||
gap: var(--actions-gap);
|
||||
}
|
||||
|
||||
.toolbar.actions.duplicates-toolbar {
|
||||
@apply items-center;
|
||||
}
|
||||
|
||||
.toolbar .btn.small {
|
||||
@apply h-[30px] rounded-full text-xs;
|
||||
@apply h-[32px] rounded-full text-xs;
|
||||
}
|
||||
|
||||
.duplicate-mode-select {
|
||||
@apply h-8 min-w-[150px] rounded-full py-0 pl-3 pr-6 text-xs;
|
||||
border-color: rgba(74, 103, 150, 0.26);
|
||||
box-shadow: none;
|
||||
line-height: 32px;
|
||||
background-position:
|
||||
calc(100% - 10px) calc(50% - 2px),
|
||||
calc(100% - 6px) calc(50% - 2px);
|
||||
background-size: 5px 5px, 5px 5px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
select.input.duplicate-mode-toolbar-select {
|
||||
height: 32px;
|
||||
padding-top: 0;
|
||||
padding-right: 24px;
|
||||
padding-bottom: 0;
|
||||
line-height: 32px;
|
||||
background-position:
|
||||
calc(100% - 10px) calc(50% - 2px),
|
||||
calc(100% - 6px) calc(50% - 2px);
|
||||
background-size: 5px 5px, 5px 5px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.duplicate-mode-head-select {
|
||||
@apply h-[34px] w-auto min-w-[156px] max-w-full;
|
||||
}
|
||||
|
||||
.duplicate-mode-toolbar-select {
|
||||
@apply w-auto max-w-[170px] shrink-0;
|
||||
}
|
||||
|
||||
.list-head {
|
||||
@@ -281,6 +318,11 @@
|
||||
overflow-anchor: none;
|
||||
}
|
||||
|
||||
.list-item.duplicate-group-item {
|
||||
background: hsl(var(--duplicate-group-hue) 84% 94%);
|
||||
border-color: hsl(var(--duplicate-group-hue) 42% 78%);
|
||||
}
|
||||
|
||||
.list-item::before {
|
||||
content: '';
|
||||
@apply absolute inset-0 opacity-0;
|
||||
@@ -361,6 +403,11 @@
|
||||
box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(37, 99, 235, 0.04);
|
||||
}
|
||||
|
||||
.list-item.duplicate-group-item:hover {
|
||||
background: hsl(var(--duplicate-group-hue) 88% 92%);
|
||||
border-color: hsl(var(--duplicate-group-hue) 52% 68%);
|
||||
}
|
||||
|
||||
.list-item:hover::before {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
@@ -372,6 +419,11 @@
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
|
||||
}
|
||||
|
||||
.list-item.duplicate-group-item.active {
|
||||
background: hsl(var(--duplicate-group-hue) 88% 89%);
|
||||
border-color: hsl(var(--duplicate-group-hue) 58% 58%);
|
||||
}
|
||||
|
||||
.list-item.active::before {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
|
||||
Reference in New Issue
Block a user