diff --git a/res/css/structures/_RightPanel.scss b/res/css/structures/_RightPanel.scss index e0fb95e99c..f567aa1a12 100644 --- a/res/css/structures/_RightPanel.scss +++ b/res/css/structures/_RightPanel.scss @@ -29,7 +29,7 @@ limitations under the License. border-bottom: 1px solid $primary-hairline-color; margin-right: 20px; - flex: 0 0 70px; + flex: 0 0 52px; } /** Fixme - factor this out with the main header **/ @@ -39,7 +39,8 @@ limitations under the License. display: flex; width: 100%; background-color: $primary-bg-color; - margin-left: 0px; + padding: 0 9px; + align-items: center; } .mx_RightPanel_headerButton { @@ -50,26 +51,27 @@ limitations under the License. padding-right: 5px; text-align: center; position: relative; + border-bottom: 2px solid transparent; } .mx_RightPanel_headerButton object { pointer-events: none; - padding-bottom: 3px; } .mx_RightPanel_headerButton_highlight { - width: 25px; - height: 5px; - border-radius: 5px; - background-color: $accent-color; - opacity: 0.2; + border-color: $accent-color; } .mx_RightPanel_headerButton_badge { - font-size: 11px; - color: $accent-color; + font-size: 8px; + border-radius: 8px; + color: $accent-fg-color; + background-color: $accent-color; font-weight: bold; - padding-bottom: 2px; + position: absolute; + top: -4px; + left: 20px; + padding: 2px 4px; } .mx_RightPanel_collapsebutton { diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index 9017447a34..25da2b4291 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -49,19 +49,21 @@ class HeaderButton extends React.Component { const TintableSvg = sdk.getComponent("elements.TintableSvg"); const AccessibleButton = sdk.getComponent("elements.AccessibleButton"); + const classes = classNames({ + mx_RightPanel_headerButton: true, + mx_RightPanel_headerButton_highlight: this.props.isHighlighted, + }) + return -
{ this.props.badge ? this.props.badge :   }
- { this.props.isHighlighted ?
:
} - ; } }