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

Commit 97b4d2b

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into SimonBrandner/feat/current-avatar
2 parents 545c4d8 + a9a97d1 commit 97b4d2b

File tree

23 files changed

+245
-388
lines changed

23 files changed

+245
-388
lines changed

res/css/_components.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
@import "./views/avatars/_DecoratedRoomAvatar.scss";
8585
@import "./views/avatars/_WidgetAvatar.scss";
8686
@import "./views/beta/_BetaCard.scss";
87-
@import "./views/buttons/_Cancel.scss";
8887
@import "./views/context_menus/_CallContextMenu.scss";
8988
@import "./views/context_menus/_DeviceContextMenu.scss";
9089
@import "./views/context_menus/_IconizedContextMenu.scss";

res/css/structures/_RoomView.scss

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ limitations under the License.
3232
position: relative;
3333
}
3434

35-
.mx_MainSplit_timeline {
36-
.mx_MessageComposer_wrapper {
37-
margin: $spacing-8 $spacing-16;
38-
}
39-
}
40-
4135
.mx_RoomView_auxPanel {
4236
min-width: 0px;
4337
width: 100%;
@@ -161,7 +155,7 @@ limitations under the License.
161155
.mx_RoomView_messageListWrapper {
162156
justify-content: flex-start;
163157

164-
> .mx_RoomView_MessageList > li > ol {
158+
>.mx_RoomView_MessageList > li > ol {
165159
list-style-type: none;
166160
}
167161
}

res/css/views/buttons/_Cancel.scss

Lines changed: 0 additions & 32 deletions
This file was deleted.

res/css/views/right_panel/_TimelineCard.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,13 @@ limitations under the License.
4949
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
5050
}
5151

52+
.mx_DisambiguatedProfile {
53+
max-width: calc(100% - var(--BaseCard_EventTile-spacing-inline)); // instead of $left-gutter
54+
}
55+
5256
.mx_ReplyTile .mx_DisambiguatedProfile {
5357
margin-inline-start: 0;
58+
max-width: unset;
5459
}
5560

5661
.mx_ReactionsRow {

res/css/views/rooms/_EventTile.scss

Lines changed: 52 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
243243
padding-left: 2px;
244244
padding-right: 2px;
245245
cursor: pointer;
246-
}
247246

248-
.mx_EventTile_searchHighlight a {
249-
background-color: $accent;
250-
color: $accent-fg-color;
247+
a {
248+
background-color: $accent;
249+
color: $accent-fg-color;
250+
}
251251
}
252252

253253
&.mx_EventTile_contextual {
@@ -264,10 +264,10 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
264264
Replaces margin-top: -6px. This interacts better with a read
265265
marker being in between. Content overflows. */
266266
height: 1px;
267-
}
268267

269-
.mx_EventTile_msgOption a {
270-
text-decoration: none;
268+
a {
269+
text-decoration: none;
270+
}
271271
}
272272

273273
/* De-zalgoing */
@@ -538,32 +538,69 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
538538
}
539539
}
540540

541-
/* Various markdown overrides */
542-
543541
.mx_EventTile_body {
544542
a:hover {
545543
text-decoration: underline;
546544
}
547545

548546
pre {
549547
border: 1px solid transparent;
548+
549+
.mx_EventTile:hover &,
550+
.mx_EventTile.focus-visible:focus-within & {
551+
border: 1px solid $tertiary-content;
552+
}
550553
}
551554

552555
// selector wrongly applies to pill avatars but those have explicit width/height passed at a higher specificity
553556
&.markdown-body img {
554557
object-fit: contain;
555558
object-position: left top;
556559
}
557-
}
558560

559-
.mx_EventTile_clamp {
560-
.mx_EventTile_body {
561+
.mx_EventTile_clamp & {
561562
-webkit-line-clamp: 2;
562563
-webkit-box-orient: vertical;
563564
overflow: hidden;
564565
text-overflow: ellipsis;
565566
display: -webkit-box;
566567
}
568+
569+
.mx_EventTile_pre_container {
570+
// For correct positioning of _copyButton (See TextualBody)
571+
position: relative;
572+
573+
&:focus-within,
574+
&:hover {
575+
.mx_EventTile_button {
576+
visibility: visible;
577+
}
578+
}
579+
580+
.mx_EventTile_collapsedCodeBlock {
581+
max-height: 30vh;
582+
}
583+
584+
// Inserted adjacent to <pre> blocks, (See TextualBody)
585+
.mx_EventTile_button {
586+
position: absolute;
587+
top: $spacing-8;
588+
right: $spacing-8;
589+
width: 19px;
590+
height: 19px;
591+
visibility: hidden;
592+
background-color: $message-action-bar-fg-color;
593+
594+
&.mx_EventTile_buttonBottom {
595+
top: 33px;
596+
}
597+
598+
&.mx_EventTile_collapseButton,
599+
&.mx_EventTile_expandButton {
600+
mask-size: 75%;
601+
}
602+
}
603+
}
567604
}
568605

569606
.mx_EventTile_lineNumbers {
@@ -578,11 +615,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
578615
}
579616
}
580617

581-
.mx_EventTile:hover .mx_EventTile_body pre,
582-
.mx_EventTile.focus-visible:focus-within .mx_EventTile_body pre {
583-
border: 1px solid $tertiary-content;
584-
}
585-
586618
.mx_EventTile_button {
587619
display: inline-block;
588620
cursor: pointer;
@@ -606,44 +638,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
606638
mask-image: url("$(res)/img/element-icons/maximise-expand.svg");
607639
}
608640

609-
.mx_EventTile_body .mx_EventTile_pre_container {
610-
// For correct positioning of _copyButton (See TextualBody)
611-
position: relative;
612-
613-
&:focus-within,
614-
&:hover {
615-
.mx_EventTile_button {
616-
visibility: visible;
617-
}
618-
}
619-
620-
.mx_EventTile_collapsedCodeBlock {
621-
max-height: 30vh;
622-
}
623-
624-
// Inserted adjacent to <pre> blocks, (See TextualBody)
625-
.mx_EventTile_button {
626-
position: absolute;
627-
top: 8px;
628-
right: 8px;
629-
width: 19px;
630-
height: 19px;
631-
visibility: hidden;
632-
background-color: $message-action-bar-fg-color;
633-
634-
&.mx_EventTile_buttonBottom {
635-
top: 33px;
636-
}
637-
638-
&.mx_EventTile_collapseButton,
639-
&.mx_EventTile_expandButton {
640-
mask-size: 75%;
641-
}
642-
}
643-
}
644-
645-
/* end of overrides */
646-
647641
.mx_EventTile_keyRequestInfo {
648642
font-size: $font-12px;
649643

@@ -685,10 +679,10 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
685679
.mx_EventTile_line {
686680
padding-left: 0;
687681
margin-right: 0;
688-
}
689682

690-
.mx_EventTile_line span {
691-
padding: 4px 8px;
683+
span {
684+
padding: $spacing-4 $spacing-8;
685+
}
692686
}
693687

694688
a {

0 commit comments

Comments
 (0)