Skip to content

Commit

Permalink
prevent help area to resize above output area height
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiasAurel committed May 14, 2024
1 parent 5c3f1f5 commit f08f673
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/big-interactive-pages/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export default function Editor({ persistenceState, cookies }: EditorProps) {
/>
<div
class={styles.helpContainer}
style={{ height: realHelpAreaSize.value }}
style={{ height: realHelpAreaSize.value, maxHeight: (outputArea.current?.clientHeight! - screenControls.current?.clientHeight!) - 5 }}
>
{!(
(persistenceState.value.kind === "SHARED" ||
Expand Down
2 changes: 1 addition & 1 deletion src/components/big-interactive-pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function Login({ session, email, to }: LoginProps) {
</p>

<label for='code'>Code:</label>
<Input id='code' type='text' value='' maxLength={6} placeholder='123456' bind={auth.code} />
<Input id='code' type='text' maxLength={6} placeholder='123456' bind={auth.code} />
{auth.state.value === 'CODE_INCORRECT' && <p class={styles.error}>Incorrect login code.</p>}

<Button class={styles.submit} accent type='submit' disabled={!auth.codeValid.value} loading={auth.isLoading.value}>
Expand Down

0 comments on commit f08f673

Please sign in to comment.