signal-desktop/stylesheets/components/ConversationView.scss
2023-07-10 15:44:32 -07:00

61 lines
1.3 KiB
SCSS

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.ConversationView {
display: flex;
flex-direction: column;
overflow: initial;
&__pane {
display: flex;
flex-direction: column;
height: calc(100% - #{$header-height} - var(--title-bar-drag-area-height));
inset-inline-start: 0;
overflow-y: overlay;
position: absolute;
top: calc(#{$header-height} + var(--title-bar-drag-area-height));
width: 100%;
z-index: $z-index-base;
@include light-theme() {
background-color: $color-white;
}
@include dark-theme() {
background-color: $color-gray-95;
}
}
&__timeline {
&--container {
flex-grow: 1;
margin: 0;
max-width: 100%;
position: relative;
}
-webkit-padding-start: 0px;
height: 100%;
margin: 0;
overflow-x: hidden;
overflow-y: auto;
padding: 0;
position: absolute;
top: 0;
width: 100%;
}
&__composition-area {
// We need to use the wrapper because the conversation view calculates the height of all
// things in the composition area. A margin on an inner div won't be included in that
// height calculation.
.quote-wrapper,
.preview-wrapper {
margin-block: 0 10px;
margin-inline: 16px;
}
}
&__header {
}
}