-
-
Notifications
You must be signed in to change notification settings - Fork 813
Set common width, white-space, and display values to MessageTimestamp #8818
Changes from all commits
27b0ea6
ece03b9
3dc51b9
9ad0641
5f983e8
892ae3f
a768cf4
b8af0a2
1e86331
236ca0c
87a42f6
42cc407
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,8 +15,13 @@ limitations under the License. | |
| */ | ||
|
|
||
| .mx_MessageTimestamp { | ||
| --MessageTimestamp-max-width: 80px; | ||
|
|
||
| color: $event-timestamp-color; | ||
| font-size: $font-10px; | ||
| font-variant-numeric: tabular-nums; | ||
| display: block; // enable the width setting below | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because |
||
| width: $MessageTimestamp_width; | ||
| white-space: nowrap; | ||
| user-select: none; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,7 +121,6 @@ limitations under the License. | |
| } | ||
|
|
||
| .mx_MessageTimestamp { | ||
| font-size: $font-12px; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| color: $secondary-content; | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,11 @@ limitations under the License. | |
| margin-left: var(--EventTile_bubble-margin-inline-start); | ||
| font-size: $font-14px; | ||
|
|
||
| .mx_MessageTimestamp { | ||
| width: unset; // Cancel the default width | ||
| max-width: var(--MessageTimestamp-max-width); | ||
| } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| .mx_ThreadSummary { | ||
| clear: both; | ||
| width: fit-content; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -153,11 +153,8 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss | |
| } | ||
|
|
||
| .mx_MessageTimestamp { | ||
| display: block; | ||
| white-space: nowrap; | ||
| left: 0px; | ||
| text-align: center; | ||
| user-select: none; | ||
| } | ||
|
|
||
| &.mx_EventTile_continuation .mx_EventTile_line { | ||
|
|
@@ -850,8 +847,8 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss | |
| } | ||
|
|
||
| .mx_MessageTimestamp { | ||
| max-width: 80px; | ||
| width: auto; | ||
| font-size: $font-12px; | ||
| max-width: var(--MessageTimestamp-max-width); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| position: initial; | ||
|
||
| } | ||
| } | ||
|
|
@@ -883,10 +880,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss | |
| padding-inline-end: 0; | ||
| } | ||
|
|
||
| .mx_MessageTimestamp { | ||
| font-size: $font-10px; | ||
| } | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| // handling for hidden events (e.g reactions) in the thread view | ||
| &.mx_EventTile_info { | ||
| padding-top: 0; | ||
|
|
@@ -1031,6 +1024,7 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss | |
|
|
||
| .mx_MessageTimestamp { | ||
| top: 2px; // Align with mx_EventTile_content | ||
| position: absolute; // for IRC layout | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
|
|
||
| .mx_EventTile_senderDetails { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,7 +83,6 @@ $irc-line-height: $font-18px; | |
| } | ||
|
|
||
| .mx_MessageTimestamp { | ||
| font-size: $font-10px; | ||
| text-align: right; | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,13 +81,13 @@ limitations under the License. | |
|
|
||
| .mx_PinnedEventTile_footer { | ||
| grid-area: footer; | ||
| font-size: 10px; | ||
| font-size: $font-10px; | ||
| line-height: 12px; | ||
|
|
||
| .mx_PinnedEventTile_timestamp { | ||
| font-size: inherit; | ||
| line-height: inherit; | ||
| color: $secondary-content; | ||
| display: unset; | ||
| width: unset; // Cancel the default width value | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
|
|
||
| .mx_AccessibleButton_kind_link { | ||
|
|
||










There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is redundant as specified with https://github.com/matrix-org/matrix-react-sdk/pull/8818/files#diff-ee6630d9ea69841b23949b052300770cf30db1afe7d269d4f4e769ef49f346b5R20.