Satisfy linter

pull/21833/head
Dariusz Niemczyk 2021-08-17 17:59:26 +02:00
parent 2ee26d0681
commit de2eb5b6dd
No known key found for this signature in database
GPG Key ID: 28DFE7164F497CB6
3 changed files with 25 additions and 15 deletions

View File

@ -15,22 +15,22 @@ limitations under the License.
*/ */
.mx_BackdropPanel { .mx_BackdropPanel {
position: absolute;
left: 0;
top: 0;
height: 100vh;
width: 100%;
overflow: hidden;
&:before {
content: ' ';
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
height: 100vh; height: 100vh;
width: 100%; width: 100%;
background-color: rgba(255, 255, 255, .055); overflow: hidden;
}
&::before {
content: " ";
position: absolute;
left: 0;
top: 0;
height: 100vh;
width: 100%;
background-color: rgba(255, 255, 255, 0.055);
}
} }
.mx_BackdropPanel--canvas { .mx_BackdropPanel--canvas {
@ -43,9 +43,9 @@ limitations under the License.
overflow: hidden; overflow: hidden;
&:nth-of-type(2n-1) { &:nth-of-type(2n-1) {
opacity: 0.2; opacity: 0.2;
} }
&:nth-of-type(2n) { &:nth-of-type(2n) {
opacity:0.1; opacity: 0.1;
} }
} }

View File

@ -95,7 +95,8 @@ export default class LeftPanel extends React.Component<IProps, IState> {
UIStore.instance.trackElementDimensions("LeftPanel", this.ref.current); UIStore.instance.trackElementDimensions("LeftPanel", this.ref.current);
UIStore.instance.trackElementDimensions("ListContainer", this.listContainerRef.current); UIStore.instance.trackElementDimensions("ListContainer", this.listContainerRef.current);
if (this.groupFilterPanelContainer.current) { if (this.groupFilterPanelContainer.current) {
UIStore.instance.trackElementDimensions("GroupFilterPanelContainer", this.groupFilterPanelContainer.current); const componentName = "GroupFilterPanelContainer";
UIStore.instance.trackElementDimensions(componentName, this.groupFilterPanelContainer.current);
} }
UIStore.instance.on("ListContainer", this.refreshStickyHeaders); UIStore.instance.on("ListContainer", this.refreshStickyHeaders);
// Using the passive option to not block the main thread // Using the passive option to not block the main thread

View File

@ -14,7 +14,16 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import React, { ComponentProps, Dispatch, ReactNode, SetStateAction, useEffect, useLayoutEffect, useRef, useState } from "react"; import React, {
ComponentProps,
Dispatch,
ReactNode,
SetStateAction,
useEffect,
useLayoutEffect,
useRef,
useState,
} from "react";
import { DragDropContext, Draggable, Droppable } from "react-beautiful-dnd"; import { DragDropContext, Draggable, Droppable } from "react-beautiful-dnd";
import classNames from "classnames"; import classNames from "classnames";
import { Room } from "matrix-js-sdk/src/models/room"; import { Room } from "matrix-js-sdk/src/models/room";