Use scss instead of inline styles

watcha-feature/make-nextcloud-documents-integration-a-local-widget
Steffen Kolmer 4 years ago
parent f65eff103e
commit d76adde1ab
  1. 1
      res/css/_components.scss
  2. 22
      res/css/views/elements/_EventTilePreview.scss
  3. 2
      src/components/views/elements/EventTilePreview.tsx

@ -132,6 +132,7 @@
@import "./views/elements/_EditableItemList.scss";
@import "./views/elements/_ErrorBoundary.scss";
@import "./views/elements/_EventListSummary.scss";
@import "./views/elements/_EventTilePreview.scss";
@import "./views/elements/_FacePile.scss";
@import "./views/elements/_Field.scss";
@import "./views/elements/_ImageView.scss";

@ -0,0 +1,22 @@
/*
Copyright 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_EventTilePreview_loader {
&.mx_IRCLayout,
&.mx_GroupLayout {
padding: 9px 0;
}
}

@ -124,7 +124,7 @@ export default class EventTilePreview extends React.Component<IProps, IState> {
"mx_GroupLayout": this.props.layout == Layout.Group,
});
if (!this.props.userId) return <div className={className} style={{ padding: '9px 0' }}><Spinner /></div>;
if (!this.props.userId) return <div className={classnames("mx_EventTilePreview_loader", className)}><Spinner /></div>;
const event = this.fakeEvent(this.state);

Loading…
Cancel
Save