Fix image preview (#2276)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2022-09-22 07:55:15 +03:00 committed by GitHub
parent 40fd5a4532
commit 3052f1790c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -121,8 +121,11 @@
max-width: 20rem; max-width: 20rem;
max-height: 20rem; max-height: 20rem;
border-radius: 0.75rem; border-radius: 0.75rem;
width: 100%; width: auto;
height: 100%; height: auto;
}
img {
object-fit: contain;
} }
} }
</style> </style>

View File

@ -217,8 +217,7 @@
overflow-y: hidden; overflow-y: hidden;
background-color: var(--accent-bg-color); background-color: var(--accent-bg-color);
border: 1px solid var(--divider-color); border: 1px solid var(--divider-color);
border-radius: 0.5rem 0.5rem 0 0; border-radius: 0.5rem;
border-bottom: none;
.item + .item { .item + .item {
padding-left: 1rem; padding-left: 1rem;