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

Commit

Permalink
Don't overlap tile bubbles with timestamps in modern layout (#8908)
Browse files Browse the repository at this point in the history
* Don't overlap tile bubbles with timestamps in modern layout

* Use timestamp width variable
  • Loading branch information
robintown committed Jun 27, 2022
1 parent ff4e665 commit 5c67ef1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion res/css/views/messages/_EventTileBubble.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ limitations under the License.
padding: 10px;
border-radius: 8px;
margin: 10px auto;
max-width: min(90%, 600px);
// Reserve space for external timestamps, but also cap the width
max-width: min(calc(100% - 2 * $MessageTimestamp_width), 600px);
box-sizing: border-box;
display: grid;
grid-template-columns: 24px minmax(0, 1fr) min-content min-content;

.mx_EventTile[data-layout=bubble] & {
// Timestamps are inside the tile, so the width can be less constrained
max-width: 600px;
}

&::before, &::after {
position: relative;
grid-column: 1;
Expand Down

0 comments on commit 5c67ef1

Please sign in to comment.