Client: Components: Fixed styles for hotkeys panel.

This commit is contained in:
Tatiana Lopaeva 2024-08-21 12:13:32 +03:00
parent 0c8ddea898
commit 4e1c69a1aa
2 changed files with 14 additions and 2 deletions

View File

@ -44,9 +44,19 @@ const StyledHotkeysPanel = styled.div`
}
.hotkeys_header {
padding: 0 16px;
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;

View File

@ -92,7 +92,9 @@ const HotkeyPanel = ({
withoutBodyScroll={true}
>
<div className="hotkeys_header">
<Heading className="hotkeys_heading">{t("Common:Hotkeys")}</Heading>
<Heading className="hotkeys_heading" truncate>
{t("Common:Hotkeys")}
</Heading>
</div>
<StyledScrollbar ref={scrollRef}>
<Heading className="hotkeys_sub-header">