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
46 changes: 33 additions & 13 deletions packages/user-ui/src/components/KeyUnlockPanel.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,32 @@
border: 1px solid #f59e0b;
border-radius: 0.75rem;
background: #fffbeb;
padding: 1rem;
padding: 1.125rem;
text-align: left;
}

.inlinePanel {
border: 0;
background: transparent;
padding: 0;
padding: 1rem 1.125rem;
text-align: left;
}

.summary {
display: flex;
gap: 1rem;
justify-content: space-between;
align-items: center;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 1rem 1.5rem;
align-items: start;
}

.copy {
display: grid;
gap: 0.25rem;
min-width: 0;
}

.title {
margin: 0 0 0.25rem;
margin: 0;
color: #92400e;
font-size: 1rem;
font-weight: 700;
Expand All @@ -40,15 +43,15 @@

.form {
display: grid;
gap: 0.75rem;
gap: 0.875rem;
margin-top: 1rem;
}

.approval {
display: grid;
gap: 0.75rem;
margin-top: 1rem;
padding-top: 1rem;
gap: 0.875rem;
margin-top: 1.125rem;
padding-top: 1.125rem;
border-top: 1px solid #fbbf24;
}

Expand Down Expand Up @@ -118,6 +121,15 @@
align-items: center;
}

.summary > .actions {
justify-content: flex-end;
}

.summary .unlockAction {
max-width: 100%;
white-space: normal;
}

.error,
.success {
border-radius: 0.5rem;
Expand All @@ -139,8 +151,16 @@

@media (max-width: 768px) {
.summary {
align-items: stretch;
flex-direction: column;
grid-template-columns: 1fr;
}

.summary > .actions {
width: 100%;
justify-content: flex-start;
}

.summary .unlockAction {
width: 100%;
}
}

Expand Down
2 changes: 2 additions & 0 deletions packages/user-ui/src/components/KeyUnlockPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ export default function KeyUnlockPanel({
<Button
type="button"
variant="primary"
className={styles.unlockAction}
onClick={requestDeviceApproval}
disabled={deviceApprovalLoading}
>
Expand All @@ -437,6 +438,7 @@ export default function KeyUnlockPanel({
<Button
type="button"
variant={trustedDeviceAllowed ? "secondary" : "primary"}
className={styles.unlockAction}
onClick={() => setExpanded(true)}
disabled={deviceApprovalLoading}
>
Expand Down
Loading