Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontends/web/src/components/dialog/dialog.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
width: 100%;
background: transparent;
z-index: 4010;
touch-action: none;
overscroll-behavior: contain;
}

.overlay.activeOverlay {
Expand All @@ -26,6 +28,8 @@
text-align: left;
max-height: calc(100dvh - calc(env(safe-area-inset-top) * 2));
overflow: auto;
touch-action: auto;
-webkit-overflow-scrolling: touch;
}
/* guard dialog and wait-dialog from view styles */
@media (min-width: 1200px) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import { ChangeEvent } from 'react';
import { useTranslation } from 'react-i18next';
import { Input } from '@/components/forms';
import { useMediaQuery } from '@/hooks/mediaquery';
import style from './note-input.module.css';

type TProps = {
Expand All @@ -25,6 +26,7 @@ type TProps = {
};

export const NoteInput = ({ onNoteChange, note }: TProps) => {
const isMobile = useMediaQuery('(max-width: 768px)');
const { t } = useTranslation();
return (
<Input
Expand All @@ -34,6 +36,7 @@ export const NoteInput = ({ onNoteChange, note }: TProps) => {
{t('note.input.description')}
</span>
}
autoFocus={!isMobile}
id="note"
onInput={(e: ChangeEvent<HTMLInputElement>) => onNoteChange(e.target.value)}
value={note}
Expand Down