fix: exceptions page ui fixes

This commit is contained in:
2026-02-11 12:01:12 +03:00
parent 4932b20991
commit 226f2efe4f
17 changed files with 161 additions and 12 deletions

View File

@@ -1138,7 +1138,7 @@ body {
.exceptions-mode-select {
width: 100%;
min-height: 32px;
padding: 0 10px;
padding: 0 28px 0 10px;
font-size: var(--text-base);
color: var(--text-color);
background: var(--input-bg);
@@ -1147,6 +1147,14 @@ body {
cursor: pointer;
}
.exceptions-mode-hint {
margin: 0;
font-size: var(--text-xs);
color: var(--text-color);
opacity: 0.6;
line-height: 1.3;
}
.exceptions-add-row {
display: flex;
align-items: center;
@@ -1188,6 +1196,30 @@ body {
font-size: 14px;
}
.exceptions-add-current-link {
align-self: flex-start;
background: none;
border: none;
padding: 0;
font-size: var(--text-xs);
color: var(--accent);
cursor: pointer;
transition: opacity 0.2s, color 0.2s;
flex-shrink: 0;
text-align: left;
}
.exceptions-add-current-link:hover {
opacity: 0.9;
text-decoration: underline;
}
.exceptions-add-current-link:disabled {
opacity: 0.5;
cursor: not-allowed;
text-decoration: none;
}
.exceptions-list-wrapper {
display: flex;
flex-direction: column;
@@ -1285,15 +1317,15 @@ body {
.exception-remove {
background: none;
border: none;
padding: 4px;
padding: 2px;
cursor: pointer;
flex-shrink: 0;
transition: color 0.2s;
display: flex;
align-items: center;
justify-content: center;
color: #9ca3af;
opacity: 0;
color: var(--text-color);
opacity: 0.5;
}
.exception-item:hover .exception-remove {
@@ -1302,10 +1334,11 @@ body {
.exception-remove:hover {
color: var(--danger);
background: none;
}
.exception-remove i {
font-size: 12px;
font-size: 10px;
}

View File

@@ -224,16 +224,13 @@
<div class="tab-content" data-tab-content="exceptions">
<div class="tab-inner">
<div class="exceptions-section">
<label class="section-label">
<i class="fa-solid fa-ban"></i>
<span data-i18n="site_exceptions">Site Exceptions</span>
</label>
<div class="exceptions-mode-card">
<span class="exceptions-mode-label" data-i18n="exceptions_mode">Mode</span>
<select id="exceptionsModeSelect" class="exceptions-mode-select" aria-label="Exceptions mode">
<option value="blacklist" data-i18n="exceptions_mode_blacklist">Blacklist — don't highlight on these sites</option>
<option value="whitelist" data-i18n="exceptions_mode_whitelist">Whitelist — only highlight on these sites</option>
<option value="blacklist" data-i18n="exceptions_mode_option_blacklist">Blacklist</option>
<option value="whitelist" data-i18n="exceptions_mode_option_whitelist">Whitelist</option>
</select>
<p class="exceptions-mode-hint" id="exceptionsModeHint" aria-live="polite"></p>
</div>
<div class="exceptions-add-row">
<input type="text" id="exceptionDomainInput" class="exception-domain-input" data-i18n="exception_domain_placeholder" placeholder="example.com" />
@@ -241,6 +238,7 @@
<i class="fa-solid fa-plus"></i>
</button>
</div>
<button type="button" class="exceptions-add-current-link" id="addCurrentSiteBtn" data-i18n="add_current_site">Add current site</button>
<div class="exceptions-list-wrapper">
<div class="exceptions-list-header">
<span class="exceptions-mode-label" id="exceptionsListLabel" data-i18n="exceptions_list">Exception Sites</span>