Skip to content

Commit 11d9716

Browse files
committed
Style hint like keyboard shortcuts modal
1 parent f115022 commit 11d9716

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

src/lib/components/ConfirmationModal.svelte

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@
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+
6872
<div class="dialog-footer">
69-
<span class="hint"><kbd>↵</kbd> to confirm</span>
7073
<button class="ghost" onclick={handleCancel}>
7174
{state.options.cancelText}
7275
</button>
@@ -98,28 +101,32 @@
98101
line-height: 1.5;
99102
}
100103
101-
.dialog-footer {
102-
display: flex;
103-
align-items: center;
104-
gap: var(--space-sm);
105-
padding: var(--space-sm) var(--space-md) var(--space-md);
106-
}
107-
108-
.dialog-footer .hint {
104+
.dialog-hint {
105+
padding: var(--space-xs) var(--space-md);
106+
background: var(--surface-raised);
107+
border-top: 1px solid var(--border);
109108
font-size: 10px;
110109
color: var(--text-disabled);
111-
margin-right: auto;
110+
text-align: center;
112111
}
113112
114-
.dialog-footer kbd {
113+
.dialog-hint kbd {
115114
display: inline-block;
116115
padding: 1px 4px;
117116
font-family: inherit;
118117
font-size: 9px;
119118
background: var(--surface-raised);
120119
border: 1px solid var(--border);
121-
border-radius: var(--radius-sm);
120+
border-radius: 3px;
122121
color: var(--text-muted);
122+
margin: 0 2px;
123+
}
124+
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);
123130
}
124131
125132
.dialog-footer button {

0 commit comments

Comments
 (0)