Add room topic to right panel room info (#12503)

* Add room topic to right panel room info

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Tweak styles

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Add snapshot tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-05-10 11:00:43 +01:00 committed by GitHub
parent 38893928cb
commit eee0b2a9c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 1055 additions and 33 deletions

View file

@ -90,6 +90,7 @@ limitations under the License.
min-height: 0;
width: 100%;
height: 100%;
scrollbar-gutter: stable;
}
.mx_BaseCard_Group {

View file

@ -51,6 +51,52 @@ limitations under the License.
}
}
.mx_RoomSummaryCard_topic {
padding: 0 12px;
.mx_Box {
width: 100%;
}
.mx_RoomSummaryCard_topic_container {
display: flex;
}
.mx_RoomSummaryCard_topic_edit {
width: max-content;
}
p {
white-space: pre-wrap;
width: 100%;
min-width: 0;
margin: 0;
}
a {
cursor: pointer;
}
.mx_RoomSummaryCard_topic_chevron {
transition: transform 0.3s;
}
&.mx_RoomSummaryCard_topic_collapsed {
p {
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.mx_RoomSummaryCard_topic_chevron {
transform: rotate(-90deg);
}
}
}
.mx_RoomSummaryCard_appsGroup {
.mx_RoomSummaryCard_Button {
/* this button is special so we have to override some of the original styling */