Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5c67ef1

Browse files
authored
Don't overlap tile bubbles with timestamps in modern layout (#8908)
* Don't overlap tile bubbles with timestamps in modern layout * Use timestamp width variable
1 parent ff4e665 commit 5c67ef1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

res/css/views/messages/_EventTileBubble.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ limitations under the License.
1919
padding: 10px;
2020
border-radius: 8px;
2121
margin: 10px auto;
22-
max-width: min(90%, 600px);
22+
// Reserve space for external timestamps, but also cap the width
23+
max-width: min(calc(100% - 2 * $MessageTimestamp_width), 600px);
2324
box-sizing: border-box;
2425
display: grid;
2526
grid-template-columns: 24px minmax(0, 1fr) min-content min-content;
2627

28+
.mx_EventTile[data-layout=bubble] & {
29+
// Timestamps are inside the tile, so the width can be less constrained
30+
max-width: 600px;
31+
}
32+
2733
&::before, &::after {
2834
position: relative;
2935
grid-column: 1;

0 commit comments

Comments
 (0)