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 2024-11-15 13:02:13 -05:00 committed by GitHub
parent 7f3cde486b
commit 32fe2623cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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),
})}