Fix keyboard shortcuts help visibility

thrimbletrimmer-solid
ElementalAlchemist 7 days ago
parent 5d37b26def
commit 92a8d1353b

@ -9,3 +9,16 @@
.streamTimeSettingLabel { .streamTimeSettingLabel {
margin-right: 3px; margin-right: 3px;
} }
.keyboardShortcutHelp {
position: absolute;
top: 0;
right: 0;
background: #222;
z-index: 1;
padding: 2px;
&[open] {
border: 1px solid #fff;
}
}

@ -350,7 +350,7 @@ export const KeyboardShortcuts: Component<KeyboardShortcutProps> = (
props: KeyboardShortcutProps, props: KeyboardShortcutProps,
) => { ) => {
return ( return (
<details> <details class={styles.keyboardShortcutHelp}>
<summary>Keyboard Shortcuts</summary> <summary>Keyboard Shortcuts</summary>
<ul> <ul>
<li>Number keys (0-9): Jump to that 10% interval of the video (0% - 90%)</li> <li>Number keys (0-9): Jump to that 10% interval of the video (0% - 90%)</li>

@ -14,12 +14,6 @@
float: right; float: right;
} }
.keyboardShortcutHelp {
position: absolute;
top: 0;
right: 0;
}
.videoLinks a { .videoLinks a {
margin: 2px; margin: 2px;
} }

@ -65,9 +65,7 @@ export const Restreamer: Component = () => {
)} )}
</For> </For>
</ul> </ul>
<div class={styles.keyboardShortcutHelp}>
<KeyboardShortcuts includeEditorShortcuts={false} /> <KeyboardShortcuts includeEditorShortcuts={false} />
</div>
<Suspense> <Suspense>
<Show when={defaultsData()}> <Show when={defaultsData()}>
<RestreamerWithDefaults <RestreamerWithDefaults

Loading…
Cancel
Save