hugo-theme-docdock icon indicating copy to clipboard operation
hugo-theme-docdock copied to clipboard

Feature request: Add sidebar resize capability

Open jzingler opened this issue 7 years ago • 8 comments

Pages with long names are cut off when displayed in the nav sidebar.

The default theme sets the nav sidebar to a fixed width of 300px and the body is set to fixed size via margin-left=300px.

Request: Add a horizontal resize feature to the nav sidebar and dynamically resize the body margin-left size based on the size of the nav sidebar.

jzingler avatar Aug 02 '17 17:08 jzingler

Or support tooltips so at least the user can view the full text.

GeertvanHorrik avatar Sep 10 '17 10:09 GeertvanHorrik

Hello @GeertvanHorrik this theme uses built in Hugo menu functions (templates). To support html's <a href="..." title="ToolTipText">, it has to be improved on Hugo itself.

Pilskalns avatar Sep 18 '17 06:09 Pilskalns

I thought it is some built-in Hugo/go HTML function, but not.

While debugging #61, found that menu.html contains section <!-- templates --> {{ define "section-tree-nav" }}, which is used to render navigation items. So, adding tooltip is really easy.

Pilskalns avatar Sep 18 '17 10:09 Pilskalns

This is super annoying to any user of the docdock theme. Can we please fix this!! We need to give the ability to resize the sidebar to the user.

kelapure avatar Mar 13 '18 17:03 kelapure

Hello all, will try to fix it this Friday

vjeantet avatar Mar 13 '18 19:03 vjeantet

@vjeantet Thanks so much!!! you rock

kelapure avatar Mar 13 '18 19:03 kelapure

Hi @vjeantet - any updates on this issue?

jzingler avatar Jan 04 '19 00:01 jzingler

any updates on this issue?

needocdude avatar May 18 '23 19:05 needocdude