Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -306,82 +306,138 @@
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
z-index: 10001;
}

.confirm-dialog {
width: min(380px, 95vw);
overflow: hidden;
background: rgb(45, 54, 58);
color: white;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 1.5rem 2rem;
max-width: 360px;
width: 90%;
text-align: center;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
display: flex;
flex-direction: column;
}

.confirm-icon {
margin-bottom: 0.5rem;
color: #ffc107;
.confirm-header {
min-height: 30px;
padding: 12px 14px;
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}

.confirm-dialog h4 {
margin: 0 0 1rem 0;
font-size: 1.15rem;
.confirm-header h4 {
margin: 0;
font-size: 15px;
color: #fff;
font-weight: 500;
font-weight: 560;
letter-spacing: -0.01em;
}

.confirm-dialog p {
margin: 0 0 0.5rem 0;
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.85);
line-height: 1.5;
.confirm-close {
width: 26px;
min-width: 26px;
height: 28px;
padding: 0;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
background: transparent;
color: rgba(255, 255, 255, 0.72);
cursor: pointer;
font-size: 16px;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.confirm-dialog p strong {
color: #fff;
.confirm-close:hover {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.16);
color: white;
}

.confirm-body {
padding: 14px;
display: flex;
align-items: flex-start;
gap: 8px;
}

.confirm-icon {
color: #ffb74d;
flex: 0 0 auto;
display: inline-flex;
margin-top: 1px;
}

.confirm-text {
font-size: 1rem !important;
/* color: rgba(255, 255, 255, 0.5) !important; */
margin-bottom: 1.5rem !important;
margin: 0;
color: rgba(255, 255, 255, 0.78);
font-size: 10.5px;
line-height: 1.45;
}

.confirm-text strong {
color: rgba(255, 255, 255, 0.95);
}

.confirm-actions {
padding: 12px 14px;
border-top: 1px solid rgba(255, 255, 255, 0.14);
display: flex;
gap: 0.75rem;
justify-content: center;
gap: 8px;
justify-content: flex-end;
}

.btn-cancel,
.btn-confirm {
padding: 8px 20px;
border: none;
min-height: 28px;
padding: 0 8px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
background: transparent;
color: rgba(255, 255, 255, 0.72);
cursor: pointer;
font-size: 14px;
font-size: 10.5px;
line-height: 1;
font-weight: 500;
transition: all 0.2s ease;
}

.btn-cancel {
background: #6c757d;
color: white;
letter-spacing: 0.02em;
transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-cancel:hover {
background: #545b62;
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.16);
color: white;
}

.btn-confirm {
background: #dc3545;
color: white;
color: #f5747f;
border-color: rgba(245, 116, 127, 0.28);
background: rgba(245, 116, 127, 0.06);
}

.btn-confirm:hover {
background: #c82333;
color: #ff9aa3;
border-color: rgba(245, 116, 127, 0.42);
background: rgba(245, 116, 127, 0.1);
}

.confirm-close:focus-visible,
.btn-cancel:focus-visible,
.btn-confirm:focus-visible {
outline: none;
box-shadow: 0 0 0 2px rgba(125, 249, 255, 0.18);
}

/* Compact settings scale shared with Software Update and Local Firmware Upload. */
.wifi-settings { padding: 0; gap: 8px; }
.status-message { padding: 7px 9px; font-size: 10.5px; line-height: 1.45; }
Expand Down Expand Up @@ -430,18 +486,3 @@
.network-item { min-height: 34px; margin-bottom: 4px; padding: 4px 8px; }
.network-info { gap: 6px; }
.network-name { font-size: 10.5px; }
.confirm-dialog { padding: 14px; }
.confirm-icon { margin-bottom: 6px; }
.confirm-icon svg { width: 28px; height: 28px; }
.confirm-dialog h4 { margin-bottom: 8px; font-size: 12px; }
.confirm-dialog p,
.confirm-text { font-size: 10.5px !important; }
.confirm-text { margin-bottom: 10px !important; }
.confirm-actions { gap: 8px; }
.btn-cancel,
.btn-confirm {
min-height: 28px;
padding: 0 8px;
border: 1px solid rgba(255, 255, 255, 0.08);
font-size: 10.5px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,27 @@ <h4>Saved Networks</h4>

<!-- Confirmation Dialog -->
<div *ngIf="showConfirmDialog" class="confirm-overlay" (click)="cancelDelete()">
<div class="confirm-dialog" (click)="$event.stopPropagation()">
<div class="confirm-icon">
<svg width="48" height="48" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" />
</svg>
<div class="confirm-dialog" role="dialog" aria-modal="true" aria-labelledby="remove-network-title"
aria-describedby="remove-network-description" (click)="$event.stopPropagation()">
<div class="confirm-header">
<h4 id="remove-network-title">Remove Network</h4>
<button type="button" class="confirm-close" (click)="cancelDelete()" aria-label="Close confirmation">
&times;
</button>
</div>
<div class="confirm-body">
<div class="confirm-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" />
</svg>
</div>
<p id="remove-network-description" class="confirm-text">
Are you sure you want to remove <strong>"{{ confirmNetworkName }}"</strong>?
</p>
</div>
<h4>Remove Network</h4>
<p class="confirm-text">Are you sure you want to remove <strong>"{{ confirmNetworkName }}"</strong>?</p>
<div class="confirm-actions">
<button class="btn-cancel" (click)="cancelDelete()">Cancel</button>
<button class="btn-confirm" (click)="confirmDelete()">Remove</button>
<button type="button" class="btn-cancel" (click)="cancelDelete()">Cancel</button>
<button type="button" class="btn-confirm" (click)="confirmDelete()">Remove</button>
</div>
</div>
</div>
Expand Down
Loading