fix panel opening wrapping glitch (#4204) (#4673)

Fix: (#4204)

The issue was that when that panel was opened its content would wrap
instead of maintaining its desired structure. I fixed this bug by adding
a minimum width to the panel's contents so that they would stay
correctly formatted throughout the opening transition.

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
Simão Sanguinho
2024-04-02 15:20:08 +01:00
committed by GitHub
parent bbffde1ca0
commit bc6db2d8b0

View File

@ -102,13 +102,14 @@ export const RightDrawer = () => {
const variants = { const variants = {
fullScreen: { fullScreen: {
width: '100%', x: '0%',
}, },
normal: { normal: {
x: '0%',
width: rightDrawerWidth, width: rightDrawerWidth,
}, },
closed: { closed: {
width: 0, x: '100%',
}, },
}; };