fix: clicking on marked fileds is losing input text/squiggle, squiggle field is mobile friendly #262
@ -122,7 +122,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
grid-gap: 15px;
|
grid-gap: 15px;
|
||||||
box-shadow: 0 -2px 4px 0 rgb(0, 0, 0, 0.1);
|
box-shadow: 0 -2px 4px 0 rgb(0, 0, 0, 0.1);
|
||||||
max-width: 750px;
|
max-width: 450px;
|
||||||
|
|
||||||
&.expanded {
|
&.expanded {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -70,8 +70,8 @@ const PdfMarking = (props: PdfMarkingProps) => {
|
|||||||
|
|
||||||
const handleMarkClick = (id: number) => {
|
const handleMarkClick = (id: number) => {
|
||||||
const nextMark = currentUserMarks.find((mark) => mark.mark.id === id)
|
const nextMark = currentUserMarks.find((mark) => mark.mark.id === id)
|
||||||
setSelectedMark(nextMark!)
|
|
||||||
setSelectedMarkValue(nextMark?.mark.value ?? EMPTY)
|
if (nextMark) handleCurrentUserMarkChange(nextMark)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleCurrentUserMarkChange = (mark: CurrentUserMark) => {
|
const handleCurrentUserMarkChange = (mark: CurrentUserMark) => {
|
||||||
|
@ -119,6 +119,6 @@ export const SIGNATURE_PAD_OPTIONS = {
|
|||||||
} as const
|
} as const
|
||||||
|
|
||||||
export const SIGNATURE_PAD_SIZE = {
|
export const SIGNATURE_PAD_SIZE = {
|
||||||
width: 600,
|
width: 300,
|
||||||
height: 300
|
height: 300
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user