From f72b1e0c7d7fd2ffdb781f003044d6774559a210 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 13 Oct 2020 12:27:50 +0100 Subject: [PATCH] Remove stale things Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- res/css/structures/_MatrixChat.scss | 1 - res/css/views/rooms/_AppsDrawer.scss | 79 ------------------------ src/components/structures/RoomView.tsx | 1 - src/components/views/rooms/AppsDrawer.js | 4 -- src/components/views/rooms/AuxPanel.js | 3 - 5 files changed, 88 deletions(-) diff --git a/res/css/structures/_MatrixChat.scss b/res/css/structures/_MatrixChat.scss index f4e46a8e94..812a7f8472 100644 --- a/res/css/structures/_MatrixChat.scss +++ b/res/css/structures/_MatrixChat.scss @@ -79,7 +79,6 @@ limitations under the License. height: 100%; } -.mx_MatrixChat > .mx_LeftPanel2:hover + .mx_ResizeHandle_horizontal, .mx_MatrixChat > .mx_ResizeHandle_horizontal:hover { position: relative; diff --git a/res/css/views/rooms/_AppsDrawer.scss b/res/css/views/rooms/_AppsDrawer.scss index a8f1b44314..8cb407989d 100644 --- a/res/css/views/rooms/_AppsDrawer.scss +++ b/res/css/views/rooms/_AppsDrawer.scss @@ -87,15 +87,6 @@ $MiniAppTileHeight: 200px; font-size: $font-12px; } -.mx_SetAppURLDialog_input { - border-radius: 3px; - border: 1px solid $input-border-color; - padding: 9px; - color: $primary-hairline-color; - background-color: $primary-bg-color; - font-size: $font-15px; -} - .mx_AppTile { width: 50%; border: 8px solid $widget-menu-bar-bg-color; @@ -229,72 +220,6 @@ $MiniAppTileHeight: 200px; display: block; } -.mx_AppTileMenuBarWidgetPadding { - margin-right: 5px; -} - -.mx_AppIconTile { - background-color: $lightbox-bg-color; - border: 1px solid rgba(0, 0, 0, 0); - width: 200px; - box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); - transition: 0.3s; - border-radius: 3px; - margin: 5px; - display: inline-block; -} - -.mx_AppIconTile.mx_AppIconTile_active { - color: $accent-color; - border-color: $accent-color; -} - -.mx_AppIconTile:hover { - border: 1px solid $accent-color; - box-shadow: 0 0 10px 5px rgba(200, 200, 200, 0.5); -} - -.mx_AppIconTile_content { - padding: 2px 16px; - height: 60px; - overflow: hidden; -} - -.mx_AppIconTile_content h4 { - margin-top: 5px; - margin-bottom: 2px; -} - -.mx_AppIconTile_content p { - margin-top: 0; - margin-bottom: 5px; - font-size: smaller; -} - -.mx_AppIconTile_image { - padding: 10px; - max-width: 100px; - max-height: 100px; - width: auto; - height: auto; -} - -.mx_AppIconTile_imageContainer { - text-align: center; - width: 100%; - background-color: white; - border-radius: 3px 3px 0 0; - height: 155px; - display: flex; - justify-content: center; - align-items: center; -} - -form.mx_Custom_Widget_Form div { - margin-top: 10px; - margin-bottom: 10px; -} - .mx_AppPermissionWarning { text-align: center; background-color: $widget-menu-bar-bg-color; @@ -389,10 +314,6 @@ form.mx_Custom_Widget_Form div { display: none; } -.mx_AppsDrawer_minimised .mx_AppsContainer_resizerHandle { - display: none; -} - /* Avoid apptile iframes capturing mouse event focus when resizing */ .mx_AppsDrawer_resizing iframe { pointer-events: none; diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index d5d9289182..0f917f383b 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -1879,7 +1879,6 @@ export default class RoomView extends React.Component { draggingFile={this.state.draggingFile} maxHeight={this.state.auxPanelMaxHeight} showApps={this.state.showApps} - hideAppsDrawer={false} onResize={this.onResize} resizeNotifier={this.props.resizeNotifier} > diff --git a/src/components/views/rooms/AppsDrawer.js b/src/components/views/rooms/AppsDrawer.js index f68a40f4f7..7d2f9d87ef 100644 --- a/src/components/views/rooms/AppsDrawer.js +++ b/src/components/views/rooms/AppsDrawer.js @@ -38,12 +38,10 @@ export default class AppsDrawer extends React.Component { room: PropTypes.object.isRequired, resizeNotifier: PropTypes.instanceOf(ResizeNotifier).isRequired, showApps: PropTypes.bool, // Should apps be rendered - hide: PropTypes.bool, // If rendered, should apps drawer be visible }; static defaultProps = { showApps: true, - hide: false, }; constructor(props) { @@ -147,9 +145,7 @@ export default class AppsDrawer extends React.Component { const classes = classNames({ mx_AppsDrawer: true, - mx_AppsDrawer_hidden: this.props.hide, mx_AppsDrawer_fullWidth: apps.length < 2, - mx_AppsDrawer_minimised: !this.props.showApps, mx_AppsDrawer_resizing: this.state.resizing, }); diff --git a/src/components/views/rooms/AuxPanel.js b/src/components/views/rooms/AuxPanel.js index b7ed457a74..a088418d5e 100644 --- a/src/components/views/rooms/AuxPanel.js +++ b/src/components/views/rooms/AuxPanel.js @@ -37,7 +37,6 @@ export default class AuxPanel extends React.Component { room: PropTypes.object.isRequired, userId: PropTypes.string.isRequired, showApps: PropTypes.bool, // Render apps - hideAppsDrawer: PropTypes.bool, // Do not display apps drawer and content (may still be rendered) // set to true to show the file drop target draggingFile: PropTypes.bool, @@ -54,7 +53,6 @@ export default class AuxPanel extends React.Component { static defaultProps = { showApps: true, - hideAppsDrawer: false, }; constructor(props) { @@ -170,7 +168,6 @@ export default class AuxPanel extends React.Component { userId={this.props.userId} maxHeight={this.props.maxHeight} showApps={this.props.showApps} - hide={this.props.hideAppsDrawer} resizeNotifier={this.props.resizeNotifier} />; }