fix(viewport): set a minimum width of 5px on viewports to prevent them from turning black/ going into an unrecoverable state. (#4517)

[OHI-865] [OHI-646]
This commit is contained in:
Ibrahim authored and GitHub committed 2024-11-15 13:02:13 -05:00
1 parent 7f3cde486b
commit 32fe2623cf
1 file changed
+1 -1
+1 -1
View File
@@ -292,7 +292,7 @@ function ViewerViewportGrid(props: withAppTypes) {
>
<div
data-cy="viewport-pane"
className={classNames('flex h-full w-full flex-col', {
className={classNames('flex h-full w-full min-w-[5px] flex-col', {
'pointer-events-none':
!isActive && (appConfig?.activateViewportBeforeInteraction ?? true),
})}