fix: text being squeezed in the sidebar animation (#1470)
This commit is contained in:
@@ -106,8 +106,6 @@ export const WorkSpaceSliderBar: React.FC<WorkSpaceSliderBarProps> = ({
|
|||||||
const currentWorkspaceId = currentWorkspace?.id || null;
|
const currentWorkspaceId = currentWorkspace?.id || null;
|
||||||
const [showSubFavorite, setOpenSubFavorite] = useState(true);
|
const [showSubFavorite, setOpenSubFavorite] = useState(true);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [open] = useSidebarStatus();
|
|
||||||
|
|
||||||
const [sidebarOpen] = useSidebarStatus();
|
const [sidebarOpen] = useSidebarStatus();
|
||||||
const pageMeta = usePageMeta(currentWorkspace?.blockSuiteWorkspace ?? null);
|
const pageMeta = usePageMeta(currentWorkspace?.blockSuiteWorkspace ?? null);
|
||||||
const onClickNewPage = useCallback(async () => {
|
const onClickNewPage = useCallback(async () => {
|
||||||
@@ -121,7 +119,7 @@ export const WorkSpaceSliderBar: React.FC<WorkSpaceSliderBarProps> = ({
|
|||||||
<StyledSliderBar show={isPublicWorkspace ? false : sidebarOpen}>
|
<StyledSliderBar show={isPublicWorkspace ? false : sidebarOpen}>
|
||||||
<StyledSidebarWrapper>
|
<StyledSidebarWrapper>
|
||||||
<SidebarSwitch
|
<SidebarSwitch
|
||||||
visible={open}
|
visible={sidebarOpen}
|
||||||
tooltipContent={t('Collapse sidebar')}
|
tooltipContent={t('Collapse sidebar')}
|
||||||
testid="sliderBar-arrowButton-collapse"
|
testid="sliderBar-arrowButton-collapse"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export const StyledSliderBar = styled('div')<{ show: boolean }>(
|
|||||||
({ theme, show }) => {
|
({ theme, show }) => {
|
||||||
return {
|
return {
|
||||||
width: show ? '256px' : '0',
|
width: show ? '256px' : '0',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
minHeight: '450px',
|
minHeight: '450px',
|
||||||
background: theme.colors.hubBackground,
|
background: theme.colors.hubBackground,
|
||||||
|
|||||||
Reference in New Issue
Block a user