Improve Thread View UI (#7063)
This commit is contained in:
parent
351c426d2a
commit
0bae79d3c3
10 changed files with 222 additions and 42 deletions
|
@ -116,3 +116,11 @@ limitations under the License.
|
|||
border-top: 8px solid $menu-bg-color;
|
||||
border-right: 8px solid transparent;
|
||||
}
|
||||
|
||||
.mx_ContextualMenu_rightAligned {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.mx_ContextualMenu_bottomAligned {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
|
|
|
@ -18,20 +18,24 @@ limitations under the License.
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
padding-right: 0;
|
||||
|
||||
.mx_BaseCard_header {
|
||||
padding: 6px 0;
|
||||
padding: 6px 8px 6px 0;
|
||||
|
||||
.mx_BaseCard_close,
|
||||
.mx_BaseCard_back {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.mx_BaseCard_close {
|
||||
margin-top: 15px;
|
||||
right: -8px;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_AccessibleButton.mx_BaseCard_back {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__header {
|
||||
width: calc(100% - 40px);
|
||||
.mx_ThreadPanel__header {
|
||||
width: calc(100% - 60px);
|
||||
margin-left: 30px;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
justify-content: space-between;
|
||||
|
@ -99,11 +103,39 @@ limitations under the License.
|
|||
}
|
||||
}
|
||||
|
||||
.mx_ThreadPanel_button {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-top: -3px;
|
||||
margin-bottom: auto;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
content: '';
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
position: absolute;
|
||||
mask-position: center;
|
||||
mask-size: contain;
|
||||
mask-repeat: no-repeat;
|
||||
background: $primary-content;
|
||||
}
|
||||
|
||||
&.mx_ThreadPanel_OptionsButton::before {
|
||||
mask-image: url('$(res)/img/element-icons/context-menu.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_AutoHideScrollbar {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.mx_RoomView_messageListWrapper {
|
||||
background-color: $background;
|
||||
border-radius: 8px;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 12px;
|
||||
padding: 8px;
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.mx_ScrollPanel {
|
||||
|
@ -116,18 +148,7 @@ limitations under the License.
|
|||
// Account for scrollbar when hovering
|
||||
width: calc(100% - 3px);
|
||||
margin: 0 2px;
|
||||
|
||||
.mx_MessageTimestamp {
|
||||
// We need to add !important here due to some enormous selectors overriding it anyways
|
||||
// See: _EventTile.scss:241
|
||||
left: unset !important;
|
||||
right: 0 !important;
|
||||
top: 16px;
|
||||
}
|
||||
|
||||
.mx_EventTile_line.mx_EventTile_line {
|
||||
position: unset;
|
||||
}
|
||||
padding-top: 0;
|
||||
|
||||
.mx_ThreadInfo {
|
||||
position: relative;
|
||||
|
@ -148,4 +169,21 @@ limitations under the License.
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageComposer {
|
||||
background-color: $background;
|
||||
border-radius: 8px;
|
||||
margin-top: 8px;
|
||||
width: calc(100% - 8px);
|
||||
padding: 0 8px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_ThreadPanel_viewInRoom::before {
|
||||
mask-image: url('$(res)/img/element-icons/view-in-room.svg');
|
||||
}
|
||||
|
||||
.mx_ThreadPanel_copyLinkToThread::before {
|
||||
mask-image: url('$(res)/img/element-icons/link.svg');
|
||||
}
|
||||
|
|
|
@ -716,19 +716,10 @@ $left-gutter: 64px;
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.mx_ScrollPanel {
|
||||
margin-top: 20px;
|
||||
|
||||
.mx_RoomView_MessageList {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_EventTile_senderDetails {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-bottom: 6px;
|
||||
|
||||
a {
|
||||
flex: 1;
|
||||
|
@ -761,22 +752,28 @@ $left-gutter: 64px;
|
|||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 0;
|
||||
padding-bottom: 5px;
|
||||
margin-bottom: 5px;
|
||||
padding-top: 0;
|
||||
|
||||
.mx_MessageTimestamp {
|
||||
left: auto;
|
||||
right: 0;
|
||||
right: 2px !important;
|
||||
top: 1px !important;
|
||||
}
|
||||
|
||||
.mx_ReactionsRow {
|
||||
order: 999;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
margin-left: 36px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_EventTile_content {
|
||||
margin-left: 36px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
|
||||
.mx_MessageComposer_sendMessage {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
|
|
@ -390,6 +390,12 @@ limitations under the License.
|
|||
padding: 0 0 0 25px;
|
||||
}
|
||||
|
||||
&:not(.mx_MessageComposer_e2eStatus) {
|
||||
.mx_MessageComposer_wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageComposer_button:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue