mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
lightbox: Add query to hide media-description below 100px width.
Using container query ensures that the media-description element gets hidden only when the container size is less tha 100px not screen size. The change is visible for image preview in small screen as action button takes much of space. Meanwhile in video-preview the description is still visible as we have much space even in small screen.
This commit is contained in:
committed by
Tim Abbott
parent
194a9f762c
commit
aa5f2d3346
@@ -116,6 +116,8 @@
|
||||
}
|
||||
|
||||
.media-description {
|
||||
container: media-description / inline-size;
|
||||
|
||||
flex: 1;
|
||||
/* setting min-width to an absolute value will make
|
||||
sure the text gets truncated in case of overflow */
|
||||
@@ -231,4 +233,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* hide media-description if it has width less than 100px */
|
||||
@container media-description (max-width: 100px) {
|
||||
.media-description {
|
||||
.title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.user {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user