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

Commit

Permalink
yarn run lint:style --fix
Browse files Browse the repository at this point in the history
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul committed Jun 3, 2022
1 parent 0b49106 commit 1dae504
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 52 deletions.
78 changes: 39 additions & 39 deletions res/css/views/right_panel/_TimelineCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,58 +63,58 @@ limitations under the License.
}

&:not([data-layout="bubble"]) {
&.mx_EventTile_info .mx_EventTile_line,
.mx_EventTile_line {
padding: var(--BaseCard_EventTile_line-padding-block) var(--BaseCard_EventTile-spacing-inline);
padding-inline-end: $MessageTimestamp_width; // ensure timestamp is not hidden
&.mx_EventTile_info .mx_EventTile_line,
.mx_EventTile_line {
padding: var(--BaseCard_EventTile_line-padding-block) var(--BaseCard_EventTile-spacing-inline);
padding-inline-end: $MessageTimestamp_width; // ensure timestamp is not hidden

.mx_EventTile_e2eIcon {
inset-inline-start: 8px;
.mx_EventTile_e2eIcon {
inset-inline-start: 8px;
}
}
}

.mx_DisambiguatedProfile,
.mx_ReactionsRow,
.mx_ThreadSummary {
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
}
.mx_DisambiguatedProfile,
.mx_ReactionsRow,
.mx_ThreadSummary {
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
}

.mx_ReactionsRow {
padding: 0;
.mx_ReactionsRow {
padding: 0;

// See margin setting of ReactionsRow on _EventTile.scss
margin-right: 8px;
}
// See margin setting of ReactionsRow on _EventTile.scss
margin-right: 8px;
}

.mx_ThreadSummary {
margin-right: 0;
max-width: min(calc(100% - 36px), 600px);
}
.mx_ThreadSummary {
margin-right: 0;
max-width: min(calc(100% - 36px), 600px);
}

.mx_EventTile_avatar {
position: absolute; // for IRC layout
top: 12px;
left: -3px;
}
.mx_EventTile_avatar {
position: absolute; // for IRC layout
top: 12px;
left: -3px;
}

.mx_MessageTimestamp {
position: absolute; // for modern layout and IRC layout
inset-inline-start: auto;
inset-inline-end: 0;
}
.mx_MessageTimestamp {
position: absolute; // for modern layout and IRC layout
inset-inline-start: auto;
inset-inline-end: 0;
}

.mx_EventTile_msgOption {
// Override mx_EventTile_msgOption of mx_EventTile:not([data-layout="bubble"])
margin-inline-end: 0;
}
.mx_EventTile_msgOption {
// Override mx_EventTile_msgOption of mx_EventTile:not([data-layout="bubble"])
margin-inline-end: 0;
}

&.mx_EventTile_info {
.mx_EventTile_avatar {
left: 18px;
&.mx_EventTile_info {
.mx_EventTile_avatar {
left: 18px;
}
}
}
}
}

.mx_EventTile,
.mx_GenericEventListSummary {
Expand Down
24 changes: 11 additions & 13 deletions res/css/views/rooms/_EventBubbleTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,17 @@ limitations under the License.
}
}

/* events that do not require bubble layout */
.mx_EventTile_line {
background: transparent;
}

&:hover {
&::before {
background: transparent;
}
}

&::after {
content: "";
clear: both;
Expand Down Expand Up @@ -711,19 +722,6 @@ limitations under the License.
}
}

/* events that do not require bubble layout */
.mx_GenericEventListSummary[data-layout=bubble] {
.mx_EventTile_line {
background: transparent;
}

&:hover {
&::before {
background: transparent;
}
}
}

.mx_EventTile_tileError[data-layout=bubble] .mx_EventTile_line {
flex-direction: column; // restore the centering
}

0 comments on commit 1dae504

Please sign in to comment.