Skip to content

Conversation

@JammingBen
Copy link
Contributor

Switch to the mobile versions of the view options and the breadcrumbs one breakpoint earlier if the right sidebar is open.

fixes #1392

Switch to the mobile versions of the view options and the breadcrumbs one breakpoint earlier if the right sidebar is open.
@JammingBen JammingBen self-assigned this Oct 23, 2025
Copilot AI review requested due to automatic review settings October 23, 2025 12:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the display of view options and breadcrumbs on mobile devices when the right sidebar is open. The main change adjusts responsive breakpoints to switch to mobile layouts one step earlier (from sm to md) when the sidebar is active, preventing layout overflow issues.

  • Refactored ViewOptions.vue from Options API to Composition API (<script setup>)
  • Added dynamic breakpoint adjustment based on sidebar state for both breadcrumbs and view options
  • Introduced mobileBreakpoint prop to OcBreadcrumb component for configurable responsive behavior

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/web-pkg/src/components/ViewOptions.vue Converted to Composition API and added dynamic breakpoint classes based on sidebar state
packages/web-pkg/tests/unit/components/ViewOptions.spec.ts Added type assertions for refactored component
packages/web-pkg/src/components/AppBar/AppBar.vue Added dynamic mobile-breakpoint prop to breadcrumb based on sidebar state
packages/web-app-admin-settings/src/components/AppTemplate.vue Added dynamic mobile-breakpoint prop to breadcrumb based on sidebar state
packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.vue Added mobileBreakpoint prop with dynamic class application
packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.spec.ts Added tests for new mobileBreakpoint prop functionality
packages/design-system/src/components/OcBreadcrumb/__snapshots__/OcBreadcrumb.spec.ts.snap Updated snapshots for reordered CSS classes
packages/web-app-admin-settings/tests/unit/views/__snapshots__/Users.spec.ts.snap Updated snapshots with new mobilebreakpoint attribute
packages/web-app-admin-settings/tests/unit/views/__snapshots__/Spaces.spec.ts.snap Updated snapshots with new mobilebreakpoint attribute

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@AlexAndBear AlexAndBear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@JammingBen JammingBen merged commit 6ec3f90 into main Oct 27, 2025
29 checks passed
@JammingBen JammingBen deleted the fix/mobile-view-options-right-sidebar branch October 27, 2025 05:57
@openclouders openclouders mentioned this pull request Oct 27, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Put view options into mobile menu earlier if the right sidebar is open

3 participants