mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
hide shortcuts for spectators
This commit is contained in:
parent
8a651088ff
commit
213d2c6753
2 changed files with 35 additions and 24 deletions
|
|
@ -266,6 +266,7 @@ export const Analyser = (props: AnalyseProps) => {
|
||||||
<h4>Keyboard Shortcuts</h4>
|
<h4>Keyboard Shortcuts</h4>
|
||||||
<table class="shortcuts">
|
<table class="shortcuts">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<Show when={!inShared}>
|
||||||
<tr>
|
<tr>
|
||||||
<td><kbd>.</kbd></td>
|
<td><kbd>.</kbd></td>
|
||||||
<td>Next tick</td>
|
<td>Next tick</td>
|
||||||
|
|
@ -290,6 +291,12 @@ export const Analyser = (props: AnalyseProps) => {
|
||||||
<td><kbd>Spacebar</kbd></td>
|
<td><kbd>Spacebar</kbd></td>
|
||||||
<td>Play/Pause</td>
|
<td>Play/Pause</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</Show>
|
||||||
|
<Show when={inShared}>
|
||||||
|
<tr>
|
||||||
|
<td colspan={2}>Shortcuts no usable as spectator have been hidden</td>
|
||||||
|
</tr>
|
||||||
|
</Show>
|
||||||
<tr>
|
<tr>
|
||||||
<td><kbd>?</kbd></td>
|
<td><kbd>?</kbd></td>
|
||||||
<td>This help menu</td>
|
<td>This help menu</td>
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,10 @@ kbd {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 90%;
|
max-height: 90%;
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-content input[type="text"] {
|
.modal-content input[type="text"] {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue