Skip to content

Commit

Permalink
Remove unused icons & styles (#28288)
Browse files Browse the repository at this point in the history
* Remove stale _LegacyRoomHeader.pcss and icons

Signed-off-by: Michael Telatynski <[email protected]>

* Remove unused icons

Signed-off-by: Michael Telatynski <[email protected]>

* Ensure legacy header styles are not used by HTML export

Signed-off-by: Michael Telatynski <[email protected]>

---------

Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy authored Oct 28, 2024
1 parent a2c7870 commit f4dc904
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 358 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion res/css/_components.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@
@import "./views/rooms/_HistoryTile.pcss";
@import "./views/rooms/_IRCLayout.pcss";
@import "./views/rooms/_JumpToBottomButton.pcss";
@import "./views/rooms/_LegacyRoomHeader.pcss";
@import "./views/rooms/_LinkPreviewGroup.pcss";
@import "./views/rooms/_LinkPreviewWidget.pcss";
@import "./views/rooms/_LiveContentSummary.pcss";
Expand Down
5 changes: 0 additions & 5 deletions res/css/structures/_RoomView.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,6 @@ Please see LICENSE files in the repository root for full details.
}
}

/* Rooms with immersive content */
.mx_RoomView_immersive .mx_LegacyRoomHeader_wrapper {
border: unset;
}

.mx_RoomView_inCall {
.mx_RoomView_statusAreaBox_line {
margin-top: 2px;
Expand Down
281 changes: 0 additions & 281 deletions res/css/views/rooms/_LegacyRoomHeader.pcss

This file was deleted.

12 changes: 0 additions & 12 deletions res/img/camera.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/element-icons/call/freedom.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/element-icons/call/spotlight.svg

This file was deleted.

4 changes: 0 additions & 4 deletions res/img/element-icons/reduce.svg

This file was deleted.

4 changes: 0 additions & 4 deletions res/img/feather-customised/edit.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/location/pointer.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/markdown.svg

This file was deleted.

5 changes: 0 additions & 5 deletions res/img/voip/signal-bars.svg

This file was deleted.

29 changes: 12 additions & 17 deletions src/utils/exportUtils/HtmlExport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,24 +161,19 @@ export default class HTMLExporter extends Exporter {
<div class="mx_MatrixChat_wrapper" aria-hidden="false">
<div class="mx_MatrixChat">
<main class="mx_RoomView">
<div class="mx_LegacyRoomHeader light-panel">
<div class="mx_LegacyRoomHeader_wrapper" aria-owns="mx_RightPanel">
<div class="mx_LegacyRoomHeader_avatar">
<div class="mx_DecoratedRoomAvatar">
${roomAvatar}
</div>
</div>
<div class="mx_LegacyRoomHeader_name">
<div
dir="auto"
class="mx_LegacyRoomHeader_nametext"
title="${safeRoomName}"
>
${safeRoomName}
</div>
<div class="mx_Flex mx_RoomHeader light-panel">
${roomAvatar}
<div class="mx_RoomHeader_infoWrapper">
<div
dir="auto"
class="mx_RoomHeader_info"
title="${safeRoomName}"
>
<span class="mx_RoomHeader_truncated mx_lineClamp">
${safeRoomName}
</span>
</div>
</div>
<div class="mx_LegacyRoomHeader_topic" dir="auto"> ${safeTopic} </div>
</div>
</div>
${previousMessagesLink}
<div class="mx_MainSplit">
Expand Down
8 changes: 8 additions & 0 deletions src/utils/exportUtils/exportCustomCSS.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ a.mx_reply_anchor:hover {
}
}

.mx_RoomHeader {
--mx-flex-display: flex;
--mx-flex-direction: row;
--mx-flex-align: center;
--mx-flex-justify: start;
--mx-flex-gap: var(--cpd-space-3x);
}

.mx_ReplyChain_Export {
margin-top: 0;
margin-bottom: 5px;
Expand Down
Loading

0 comments on commit f4dc904

Please sign in to comment.