Client: HotkeysPanel: Added a header component.

This commit is contained in:
Tatiana Lopaeva 2024-08-22 12:56:00 +03:00
parent bf9402870e
commit 96bf6d1ab6
2 changed files with 1 additions and 25 deletions

View File

@ -43,26 +43,6 @@ const StyledHotkeysPanel = styled.div`
}
}
.hotkeys_header {
border-bottom: ${(props) => props.theme.filesPanels.sharing.borderBottom};
${(props) =>
props.theme.interfaceDirection === "rtl"
? css`
padding-right: 16px;
padding-left: 37px;
`
: css`
padding-left: 16px;
padding-right: 37px;
`}
.hotkeys_heading {
font-weight: 700;
font-size: 18px;
}
}
.hotkeys_sub-header {
font-weight: 700;
font-size: 16px;

View File

@ -90,12 +90,8 @@ const HotkeyPanel = ({
visible={visible}
onClose={onClose}
withoutBodyScroll={true}
header={t("Common:Hotkeys")}
>
<div className="hotkeys_header">
<Heading className="hotkeys_heading" truncate>
{t("Common:Hotkeys")}
</Heading>
</div>
<StyledScrollbar ref={scrollRef}>
<Heading className="hotkeys_sub-header">
{t("HotkeysNavigation")}