Skip to content

Commit 368ae1c

Browse files
committed
Move hint into footer with proper styling
1 parent d4ccffc commit 368ae1c

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

src/lib/components/ConfirmationModal.svelte

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@
6565
<p id="confirmation-message">{state.options.message}</p>
6666
</div>
6767

68-
<div class="dialog-hint">
69-
Press <kbd>↵</kbd> to confirm
70-
</div>
71-
7268
<div class="dialog-footer">
69+
<span class="hint">Press <kbd>↵</kbd> to confirm</span>
7370
<button class="ghost" onclick={handleCancel}>
7471
{state.options.cancelText}
7572
</button>
@@ -101,34 +98,34 @@
10198
line-height: 1.5;
10299
}
103100
104-
.dialog-hint {
101+
.dialog-footer {
102+
display: flex;
103+
align-items: center;
104+
gap: var(--space-sm);
105105
padding: var(--space-xs) var(--space-md);
106106
background: var(--surface-raised);
107107
border-top: 1px solid var(--border);
108+
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
109+
}
110+
111+
.dialog-footer .hint {
108112
font-size: 10px;
109113
color: var(--text-disabled);
110-
text-align: center;
114+
margin-right: auto;
111115
}
112116
113-
.dialog-hint kbd {
117+
.dialog-footer kbd {
114118
display: inline-block;
115119
padding: 1px 4px;
116120
font-family: inherit;
117121
font-size: 9px;
118-
background: var(--surface-raised);
122+
background: var(--surface);
119123
border: 1px solid var(--border);
120124
border-radius: 3px;
121125
color: var(--text-muted);
122126
margin: 0 2px;
123127
}
124128
125-
.dialog-footer {
126-
display: flex;
127-
justify-content: flex-end;
128-
gap: var(--space-sm);
129-
padding: var(--space-sm) var(--space-md) var(--space-md);
130-
}
131-
132129
.dialog-footer button {
133130
padding: var(--space-sm) var(--space-md);
134131
border: 1px solid var(--border);

0 commit comments

Comments
 (0)