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

Commit cd8bdc1

Browse files
authored
Add box-shadow to the reply preview on the main (left) panel only (#8397)
Remove the box-shadow from the preview on the (right) panel for threads and a chat with a maximized widget. Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 50a714d commit cd8bdc1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

res/css/views/rooms/_ReplyPreview.scss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ limitations under the License.
1616

1717
.mx_ReplyPreview {
1818
border: 1px solid $primary-hairline-color;
19-
background: $background;
2019
border-bottom: none;
21-
border-radius: 8px 8px 0 0;
20+
background: $background;
2221
max-height: 50vh;
2322
overflow: auto;
24-
box-shadow: 0px -16px 32px $composer-shadow-color;
2523

2624
.mx_ReplyPreview_section {
2725
border-bottom: 1px solid $primary-hairline-color;
@@ -53,3 +51,12 @@ limitations under the License.
5351
}
5452
}
5553
}
54+
55+
.mx_RoomView_body {
56+
.mx_ReplyPreview {
57+
// Add box-shadow to the reply preview on the main (left) panel only.
58+
// It is not added to the preview on the (right) panel for threads and a chat with a maximized widget.
59+
box-shadow: 0px -16px 32px $composer-shadow-color;
60+
border-radius: 8px 8px 0 0;
61+
}
62+
}

0 commit comments

Comments
 (0)