UX: Onebox container sizing (#25658)

* UX: scope onebox container size to not images

* UX: increase max-width for onebox img
This commit is contained in:
chapoi 2024-02-13 11:06:29 +02:00 committed by GitHub
parent 7cd5d646d2
commit 2bd0a8f432
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -18,7 +18,9 @@ $max_image_height: 150px;
}
.onebox {
container-type: inline-size;
&:not(img) {
container-type: inline-size;
}
.thumbnail {
&.onebox-avatar {
@ -29,6 +31,10 @@ $max_image_height: 150px;
}
}
.onebox-body .aspect-image {
max-width: 50%;
}
@container (width < 400px) {
.onebox-body {
display: flex;