Skip to content

Commit ae9fc8a

Browse files
author
Alain Bourgeois
committed
remove horizontal navbar
1 parent ea554c1 commit ae9fc8a

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

src/outline/manager.js

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -336,20 +336,24 @@ export default function (context) {
336336
)
337337
}
338338

339-
div.appendChild(
340-
UI.tabs.tabWidget({
341-
dom,
342-
subject: me,
343-
items,
344-
renderMain,
345-
renderTab,
346-
ordered: true,
347-
orientation: 0,
348-
backgroundColor: '#eeeeee', // black?
349-
selectedTab: options.selectedTab,
350-
onClose: options.onClose
351-
})
352-
)
339+
const tabWidgetEl = UI.tabs.tabWidget({
340+
dom,
341+
subject: me,
342+
items,
343+
renderMain,
344+
renderTab,
345+
ordered: true,
346+
orientation: 0,
347+
backgroundColor: '#eeeeee', // black?
348+
selectedTab: options.selectedTab,
349+
onClose: options.onClose
350+
})
351+
// Hide the tab strip visually while keeping tabs clickable for programmatic navigation
352+
const tabNav = tabWidgetEl.querySelector('nav')
353+
if (tabNav) {
354+
tabNav.style.cssText = 'position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;'
355+
}
356+
div.appendChild(tabWidgetEl)
353357
return div
354358
}
355359
this.getDashboard = globalAppTabs

0 commit comments

Comments
 (0)