Не подтверждена Коммит 63de73a8 создал по автору Peng Xiao's avatar Peng Xiao
Просмотр файлов

fix: width blink in side bar (#5291)

владелец c6678197
......@@ -149,12 +149,13 @@ export const ResizePanel = forwardRef<HTMLDivElement, ResizePanelProps>(
ref
) {
const enableAnimation = useEnableAnimation() && _enableAnimation;
const safeWidth = Math.min(maxWidth, Math.max(minWidth, width));
return (
<div
{...rest}
ref={ref}
style={assignInlineVars({
[styles.panelWidthVar]: `${width}px`,
[styles.panelWidthVar]: `${safeWidth}px`,
})}
className={clsx(className, styles.root)}
data-open={open}
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать