chore: fix file node selection issues

This commit is contained in:
Aman Harwara
2023-12-05 02:53:21 +05:30
parent 357e763c3e
commit 9265e7afe9
2 changed files with 19 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ const ImagePreview: FunctionComponent<Props> = ({
const widthIfEmbedded = imageWidth * (imageZoomPercent / PercentageDivisor)
return (
<div className="group flex h-full min-h-0 w-full items-center justify-center">
<div className="group relative flex h-full min-h-0 w-full items-center justify-center">
<div
className="relative flex h-full w-full items-center justify-center overflow-auto"
style={{
@@ -103,7 +103,7 @@ const ImagePreview: FunctionComponent<Props> = ({
<div className="mx-2">
<input
type="number"
className="w-10 text-center bg-default"
className="w-10 bg-default text-center"
defaultValue={imageZoomPercent}
onKeyDown={(event) => {
event.stopPropagation()