Skip to content

Commit 5adaf19

Browse files
committed
make bubble layout try to use as much width as the mediatile allow
1 parent 107885e commit 5adaf19

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Loading

packages/shared-components/src/room/timeline/event-tile/MediaPreviewGroupView/MediaPreviewGroupView.module.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
.container {
2-
max-width: var(--MediaPreview-width);
2+
/* A definite width, not just a cap. Bubble layout sizes the event line with
3+
`width: fit-content`, so a container with only a `max-width` is sized
4+
intrinsically -- and the icon beside the filename is a `height: 100%`
5+
square, which contributes no width while an intrinsic width is being
6+
computed. The tile would come out one icon too narrow and the filename
7+
would be squeezed into an ellipsis. */
8+
width: var(--MediaPreview-width);
9+
max-width: 100%;
310

411
display: flex;
512
flex-direction: column;

0 commit comments

Comments
 (0)