Skip to content

fix: prevent file sidebar clipping on small screens (CB-4260)#245

Open
Gerry-Cern wants to merge 1 commit into
cernbox:cernboxfrom
Gerry-Cern:cb-4260-reorganize
Open

fix: prevent file sidebar clipping on small screens (CB-4260)#245
Gerry-Cern wants to merge 1 commit into
cernbox:cernboxfrom
Gerry-Cern:cb-4260-reorganize

Conversation

@Gerry-Cern
Copy link
Copy Markdown

Fixes an issue where the right-hand file sidebar (#app-sidebar) could be partially hidden on low-resolution viewports (e.g. 1024×768 at 100% zoom), making context actions in the sidebar (including on public links) hard or impossible to reach.

Change: Allow the sidebar to shrink within the flex layout (flex: 0 1 440px, min-width: 0) and improve vertical scrolling (min-height: 0 on the panel body).

Test plan

Open a public link on a narrow viewport, open the file sidebar and Actions panel; confirm the sidebar is fully visible and actions are reachable.

Unit tests: packages/web-pkg/tests/unit/components/sidebar/SideBar.spec.ts

  • Changed width properties to use flexbox for better responsiveness.
  • Added min-height and max-width constraints.
  • Introduced a new test suite for the SideBar component to ensure proper rendering and responsive behavior.

Description

Related Issue

  • Fixes <issue_link>

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

Open tasks:

  • ...

- Changed width properties to use flexbox for better responsiveness.
- Added min-height and max-width constraints.
- Introduced a new test suite for the SideBar component to ensure proper rendering and responsive behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant