You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
styling and fix i button behaviour
This commit is contained in:
@@ -68,6 +68,14 @@ limitations under the License.
|
|||||||
mask-repeat: no-repeat;
|
mask-repeat: no-repeat;
|
||||||
mask-size: contain;
|
mask-size: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba($accent-color, 0.1);
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
background-color: $accent-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RightPanel_notifsButton::before {
|
.mx_RightPanel_notifsButton::before {
|
||||||
@@ -90,16 +98,6 @@ limitations under the License.
|
|||||||
mask-position: center;
|
mask-position: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RightPanel_headerButton {
|
|
||||||
&:hover {
|
|
||||||
background: rgba($accent-color, 0.1);
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
background-color: $accent-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_RightPanel_headerButton_highlight {
|
.mx_RightPanel_headerButton_highlight {
|
||||||
&::before {
|
&::before {
|
||||||
background-color: $accent-color !important;
|
background-color: $accent-color !important;
|
||||||
|
|||||||
@@ -59,8 +59,13 @@ export default class RoomHeaderButtons extends HeaderButtons {
|
|||||||
|
|
||||||
// TODO make it restore whatever widget they were on last
|
// TODO make it restore whatever widget they were on last
|
||||||
private onRoomSummaryClicked = () => {
|
private onRoomSummaryClicked = () => {
|
||||||
|
if (this.state.phase === RightPanelPhases.Widget) {
|
||||||
|
// Close the panel
|
||||||
|
this.setPhase(RightPanelPhases.Widget);
|
||||||
|
} else {
|
||||||
// This toggles for us, if needed
|
// This toggles for us, if needed
|
||||||
this.setPhase(RightPanelPhases.RoomSummary);
|
this.setPhase(RightPanelPhases.RoomSummary);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private onNotificationsClicked = () => {
|
private onNotificationsClicked = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user