docusaurus-openapi icon indicating copy to clipboard operation
docusaurus-openapi copied to clipboard

bug: hideable for sidebar is not fully supported

Open ernado opened this issue 2 years ago • 1 comments

Having

docs: {
  sidebar: {
    hideable: true,
  }
},

image

The collapseSidebarButton is displayed incorrectly.

Also, after hiding sidebar, the "unhide" button is not available:

image

I'm installing docusaurus-openapi like plugin (but I've also tried preset with same results):

[
  'docusaurus-plugin-openapi',
  /** @type {import('docusaurus-plugin-openapi').Options} */
  ({
    id: 'api',
    path: 'openapi.yml',
    routeBasePath: '/api',
    sidebarCollapsible: false,
  }),
],

It looks like there is no way to disable hideable sidebar only for single plugin.

ernado avatar Mar 27 '23 14:03 ernado

I'm having the same issue, via preset install: it seems like the collapseSidebarButton is transparent, which makes it so you can see the titles of sidebar items "inside" the button. Notably, this doesn't occur to the sidebar located at <website.com/docs>, only the sidebar located at <website.com/api> (generated by the plugin).

Similarly, the sidebar at <website.com/api> doesn't generate a scrollbar if the number of expanded categories exceeds the length of the page—the sidebar just keeps expanding and makes the page longer in the process. Again, this doesn't happen on <website.com/docs>.

Normal /docs sidebar (pardon the lorem ipsum, I'm building a docs site that's not yet public!): sidebar1

Incongruent /api sidebar, with (1) transparent button and (2) no scrollbar, even when one should be present: sidebar2

alexakreizinger avatar Mar 29 '23 01:03 alexakreizinger