Skip to content

Commit b24d20f

Browse files
committed
actually working
1 parent 883f6cd commit b24d20f

9 files changed

Lines changed: 466 additions & 343 deletions

File tree

packages/admin-vanilla/src/app.inline.css

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,48 +423,110 @@ body:has(.modal-shell[open]) {
423423
.modal-card {
424424
width: min(1180px, 100%);
425425
max-height: calc(100vh - 56px);
426+
display: flex;
427+
flex-direction: column;
426428
border-radius: 28px;
427429
overflow: hidden;
428430
background: var(--color-surface-modal);
429431
}
430432

431433
.modal-header {
432434
display: flex;
435+
align-items: center;
433436
justify-content: space-between;
434437
gap: 20px;
435438
padding: 24px 26px;
439+
flex: 0 0 116px;
440+
min-height: 116px;
436441
border-bottom: 1px solid var(--color-border-soft);
437442
background: linear-gradient(180deg, var(--color-surface-modal-header-top) 0%, var(--color-surface-modal-header-bottom) 100%);
438443
}
439444

445+
footer.modal-header {
446+
border-top: 1px solid var(--color-border-soft);
447+
border-bottom: 0;
448+
}
449+
440450
.modal-header h3 {
441451
margin-bottom: 8px;
442452
font-size: 2rem;
443453
}
444454

455+
.modal-header > div {
456+
min-width: 0;
457+
}
458+
445459
.close-button {
460+
display: inline-flex;
461+
align-items: center;
462+
justify-content: center;
446463
width: 44px;
447464
height: 44px;
448465
border-radius: 50%;
449466
background: var(--color-surface-ghost-button);
450467
color: var(--color-accent-button-text);
451-
font-size: 1.6rem;
452-
line-height: 1;
468+
padding: 0;
469+
}
470+
471+
.close-button material-symbol {
472+
display: inline-flex;
473+
width: 20px;
474+
height: 20px;
475+
}
476+
477+
.close-button material-symbol svg {
478+
width: 20px;
479+
height: 20px;
480+
}
481+
482+
.error-close-button {
483+
display: inline-flex;
484+
align-items: center;
485+
justify-content: center;
486+
width: 36px;
487+
height: 36px;
488+
padding: 0;
489+
border: 0;
490+
border-radius: 50%;
491+
background: transparent;
492+
color: var(--color-accent-button-text);
493+
cursor: pointer;
494+
flex: 0 0 auto;
495+
}
496+
497+
.error-close-button:hover,
498+
.error-close-button:focus-visible {
499+
background: var(--color-surface-ghost-button);
500+
}
501+
502+
.error-close-button material-symbol {
503+
display: inline-flex;
504+
width: 18px;
505+
height: 18px;
506+
}
507+
508+
.error-close-button material-symbol svg {
509+
width: 18px;
510+
height: 18px;
453511
}
454512

455513
.modal-layout {
456514
display: grid;
457515
grid-template-columns: 260px minmax(0, 1fr);
458516
gap: 22px;
459517
padding: 24px;
518+
flex: 1 1 auto;
519+
min-height: 0;
460520
overflow: auto;
461-
max-height: calc(100vh - 200px);
462521
}
463522

464523
.modal-loading-shell {
465524
display: grid;
466525
gap: 18px;
467526
padding: 32px 26px 36px;
527+
flex: 1 1 auto;
528+
min-height: 0;
529+
overflow: auto;
468530
align-content: start;
469531
min-height: 220px;
470532
}

0 commit comments

Comments
 (0)