[ui] allow images in detail to fill screen

feat/vaults
Tomáš Mládek 2022-03-15 17:22:14 +01:00
parent c9a79492de
commit a477468272
No known key found for this signature in database
GPG Key ID: 65E225C8B3E2ED8A
2 changed files with 8 additions and 1 deletions

View File

@ -314,6 +314,7 @@
.attributes {
flex: auto;
height: 0; // https://stackoverflow.com/a/14964944
min-height: 12em;
overflow-y: auto;
}

View File

@ -37,7 +37,7 @@
</script>
{#if handled}
<div class="preview" class:detail>
<div class="preview" class:detail class:image>
{#if text}
<div class="text">
<TextViewer {address} />
@ -106,6 +106,12 @@
&.detail {
max-height: 50vh;
}
&.detail.image {
max-height: unset;
flex-grow: 1;
min-height: 0;
}
}
video,