Skip to content

Commit

Permalink
fix(editor-3001): min width sidebar (#27442)
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE authored Jan 10, 2025
1 parent 347fccf commit b8a2764
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions frontend/src/layout/navigation-3000/navigationLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,6 @@ export const navigation3000Logic = kea<navigation3000LogicType>([
}
actions.setSidebarWidth(newWidth)
actions.setSidebarOverslide(newWidthRaw - newWidth)
if (newWidthRaw < MINIMUM_SIDEBAR_WIDTH_PX / 2) {
if (values.isSidebarShown) {
actions.hideSidebar()
}
} else {
if (!values.isSidebarShown) {
actions.showSidebar()
}
}
},
syncSidebarWidthWithViewport: () => {
if (values.sidebarWidth > window.innerWidth * (MAXIMUM_SIDEBAR_WIDTH_PERCENTAGE / 100)) {
Expand Down

0 comments on commit b8a2764

Please sign in to comment.