You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
differentiate style based on preview or not
This commit is contained in:
@@ -28,6 +28,10 @@ limitations under the License.
|
|||||||
-webkit-align-items: center;
|
-webkit-align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_RoomPreviewBar_dialog {
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.mx_RoomPreviewBar_join_text {
|
.mx_RoomPreviewBar_join_text {
|
||||||
color: $warning-color;
|
color: $warning-color;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ const React = require('react');
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
const sdk = require('../../../index');
|
const sdk = require('../../../index');
|
||||||
const MatrixClientPeg = require('../../../MatrixClientPeg');
|
const MatrixClientPeg = require('../../../MatrixClientPeg');
|
||||||
|
import classNames from 'classnames';
|
||||||
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
@@ -234,8 +235,13 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const classes = classNames("mx_RoomPreviewBar", "dark-panel", {
|
||||||
|
"mx_RoomPreviewBar_panel": this.props.canPreview,
|
||||||
|
"mx_RoomPreviewBar_dialog": !this.props.canPreview,
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomPreviewBar dark-panel">
|
<div className={classes}>
|
||||||
<div className="mx_RoomPreviewBar_wrapper">
|
<div className="mx_RoomPreviewBar_wrapper">
|
||||||
{ joinBlock }
|
{ joinBlock }
|
||||||
{ previewBlock }
|
{ previewBlock }
|
||||||
|
|||||||
Reference in New Issue
Block a user