Make padding only on the prototype tag panel

pull/21833/head
Travis Ralston 2020-08-26 08:42:26 -06:00
parent c68636bd32
commit 0c67a42b0f
3 changed files with 6 additions and 0 deletions

View File

@ -75,8 +75,12 @@ limitations under the License.
.mx_TagPanel .mx_TagTile {
// opacity: 0.5;
position: relative;
}
.mx_TagPanel .mx_TagTile.mx_TagTile_prototype {
padding: 3px;
}
.mx_TagPanel .mx_TagTile:focus,
.mx_TagPanel .mx_TagTile:hover,
.mx_TagPanel .mx_TagTile.mx_TagTile_selected {

View File

@ -144,6 +144,7 @@ export default createReactClass({
const isPrototype = SettingsStore.getValue("feature_communities_v2_prototypes");
const className = classNames({
mx_TagTile: true,
mx_TagTile_prototype: isPrototype,
mx_TagTile_selected: this.props.selected && !isPrototype,
mx_TagTile_selected_prototype: this.props.selected && isPrototype,
});

View File

@ -66,6 +66,7 @@ export default class UserTagTile extends React.PureComponent<IProps, IState> {
// TagTile instead if we continue to use this component.
const className = classNames({
mx_TagTile: true,
mx_TagTile_prototype: true,
mx_TagTile_selected_prototype: this.state.selected,
mx_TagTile_home: true,
});