Make the meta sidebar interact with the toolbar menu sidebar

Created on 1 June 2022, over 2 years ago
Updated 24 July 2024, 5 months ago

Problem/Motivation

Make the meta sidebar, introduced in #3187407: Collapsible sidebar โ†’ interact with the toolbar menu

Proposed resolution

Hide the opposite one when one is expanded.

Remaining tasks

User interface changes

API changes

Data model changes

โœจ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany volkerk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Yannick Bloemen โ†’ made their first commit to this issueโ€™s fork.

  • Status changed to Needs review about 1 year ago
  • Pipeline finished with Success
    about 1 year ago
    Total: 211s
    #35187
  • Pipeline finished with Skipped
    about 1 year ago
    #35278
  • First commit to issue fork.
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland saschaeggi Zurich

    Thanks for your work on this @Yannick Bloemen ๐ŸŽ‰

    I pushed some changes to set a breakpoint to 1280 and to auto hide either the toolbar or the sidebar depending what is toggled. Also added support for the new navigation.

    Needs a review

  • Status changed to RTBC 11 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia djsagar

    verified MR!321, Now menu hide when clicked meta sidebar.

    For reference:-
    After MR

    Moving into the RTBC +

  • Pipeline finished with Success
    9 months ago
    #135998
  • Status changed to Needs work 9 months ago
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany volkerk
  • Status changed to Needs review 9 months ago
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland saschaeggi Zurich

    @volkerk fixed the bug

  • Status changed to RTBC 9 months ago
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany volkerk

    Tested with latest chrome and firefox esr, both default vertical toolbar and experimental new core nav.

    Lgtm, nice.

  • Pipeline finished with Failed
    9 months ago
    Total: 7502s
    #136397
  • Pipeline finished with Success
    9 months ago
    Total: 279s
    #136492
  • Pipeline finished with Success
    9 months ago
    #136496
  • Status changed to Fixed 9 months ago
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland saschaeggi Zurich

    Merged, thanks ๐Ÿš€

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium flyke

    I seem to have an error on smaller screens when I click the toggle button to show/hide the meta sidebar.

    If I simply open a node edit form on smaller screen, like 1200px wide:

    TypeError: Cannot read properties of undefined (reading 'collapseToolbar')
        at Object.showSidebar (sidebar.js?sh4cqs:39:60)
        at sidebar.js?sh4cqs:14:98
        at Array.forEach (<anonymous>)
        at Object.init (sidebar.js?sh4cqs:12:59)
        at Object.attach (sidebar.js?sh4cqs:8:29)
        at drupal.js?v=10.3.1:166:24
        at Array.forEach (<anonymous>)
        at Drupal.attachBehaviors (drupal.js?v=10.3.1:162:34)
        at big_pipe.js?v=10.3.1:153:10
        at big_pipe.js?v=10.3.1:184:3

    If I widen my screen so its for example 1300px wide, then the error is not there.

    I think it has to do with this part in sidebar.js:

          // Check which toolbar is active.
          if (window.innerWidth < breakpointLarge) {
            Drupal.ginCoreNavigation?.collapseToolbar();
    
            if (toolbarVariant === 'vertical') {
              Drupal.ginToolbar.collapseToolbar();
            } else if (toolbarVariant === 'new') {
              Drupal.behaviors.ginNavigation?.collapseSidebar();
            }
          }

    Also, it does not work for me, when I open the meta sidebar (on the right), the (core experimental) Navigation sidebar on the left does not collapse.
    - Drupal core 10.3.1
    - Gin 8.x-3.x-dev / also tested on Gin 8.x-3.0-rc13
    - navigation module enabled
    - navigation_top_bar module enabled

    Is that just me and my setup for some reason ?

Production build 0.71.5 2024