autosize diaog width to contents

This commit is contained in:
tophf 2022-01-13 23:25:30 +03:00
parent b5e46c8078
commit cf053382da

View File

@ -1,21 +1,27 @@
#message-box.injection-order > div { #message-box.injection-order > div {
height: 100%; height: 100%;
width: 40em;
max-width: 80vw; max-width: 80vw;
} }
#message-box.injection-order #message-box-contents { #message-box.injection-order #message-box-contents {
padding: 0; padding: 0;
overflow: hidden; overflow: hidden;
display: flex;
flex-direction: column;
--border: 1px solid rgba(128, 128, 128, .25);
} }
.injection-order header { .injection-order header {
padding: 1rem 1rem 0; padding: 1rem;
content: attr(data-hint); width: 0;
min-width: 100%;
box-sizing: border-box;
} }
.injection-order ol { .injection-order ol {
height: 100%; height: 100%;
padding: 0; padding: 0;
margin: 0;
font-size: 14px; font-size: 14px;
overflow-y: auto; overflow-y: auto;
border-top: var(--border);
} }
.injection-order a { .injection-order a {
display: block; display: block;
@ -37,7 +43,7 @@
text-decoration: underline; text-decoration: underline;
} }
.injection-order a:not(:first-child) { .injection-order a:not(:first-child) {
border-top: 1px solid rgba(128, 128, 128, .25); border-top: var(--border);
} }
.injection-order a::before { .injection-order a::before {
content: "\2261"; content: "\2261";