mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Merge pull request #36210 from overleaf/ab-fix-focus-mode-shortcut-linux
[web] Fix Focus mode shortcut showing Mac control glyph on non-Mac platforms GitOrigin-RevId: d2f9f068ab9a2585813fbb777a6ab4fb41d386a2
This commit is contained in:
committed by
Copybot
parent
0adf9ea45c
commit
329eca74c1
+1
-1
@@ -107,7 +107,7 @@ const shortcuts: Record<LayoutOption, string[] | null> = isMac
|
||||
pdfOnly: null,
|
||||
sideBySide: null,
|
||||
detachedPdf: null,
|
||||
focusMode: ['⌃', '⇧', 'M'],
|
||||
focusMode: ['Ctrl', 'Shift', 'M'],
|
||||
}
|
||||
|
||||
export default function ChangeLayoutOptions() {
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
import classNames from 'classnames'
|
||||
|
||||
export function Shortcut({ keys }: { keys: string[] }) {
|
||||
return (
|
||||
<span>
|
||||
<span className="dropdown-shortcut">
|
||||
{keys.map((key, idx) => (
|
||||
<span
|
||||
className={classNames({
|
||||
'dropdown-shortcut-char': key.length === 1,
|
||||
})}
|
||||
key={`${key}${idx}`}
|
||||
>
|
||||
{key}
|
||||
</span>
|
||||
<span key={`${key}${idx}`}>{key}</span>
|
||||
))}
|
||||
</span>
|
||||
)
|
||||
|
||||
@@ -310,10 +310,9 @@ $dropdown-item-min-height: 36px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.dropdown-shortcut-char {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
.dropdown-shortcut {
|
||||
display: inline-flex;
|
||||
gap: var(--spacing-02);
|
||||
}
|
||||
|
||||
.dropdown-item-wide {
|
||||
|
||||
Reference in New Issue
Block a user