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
Tweak bottom of space panel buttons in expanded state (#7213)
This commit is contained in:
committed by
GitHub
parent
82ae39435c
commit
1d2965a111
@@ -34,8 +34,9 @@ import SettingsStore from "../../../settings/SettingsStore";
|
||||
import { SettingLevel } from "../../../settings/SettingLevel";
|
||||
import dis from "../../../dispatcher/dispatcher";
|
||||
import { RecheckThemePayload } from "../../../dispatcher/payloads/RecheckThemePayload";
|
||||
import classNames from "classnames";
|
||||
|
||||
const QuickSettingsButton = () => {
|
||||
const QuickSettingsButton = ({ isPanelCollapsed = false }) => {
|
||||
const orderedThemes = useMemo(getOrderedThemes, []);
|
||||
const [menuDisplayed, handle, openMenu, closeMenu] = useContextMenu<HTMLDivElement>();
|
||||
|
||||
@@ -137,11 +138,14 @@ const QuickSettingsButton = () => {
|
||||
|
||||
return <>
|
||||
<AccessibleTooltipButton
|
||||
className="mx_QuickSettingsButton"
|
||||
className={classNames("mx_QuickSettingsButton", { expanded: !isPanelCollapsed })}
|
||||
onClick={openMenu}
|
||||
title={_t("Quick settings")}
|
||||
inputRef={handle}
|
||||
/>
|
||||
forceHide={!isPanelCollapsed}
|
||||
>
|
||||
{ !isPanelCollapsed ? _t("Settings") : null }
|
||||
</AccessibleTooltipButton>
|
||||
|
||||
{ contextMenu }
|
||||
</>;
|
||||
|
||||
Reference in New Issue
Block a user