mirror of
https://github.com/coollabsio/coolify-docs.git
synced 2026-06-19 07:35:55 +00:00
fix(docs): hide sidebar placeholders on index pages
Use a data attribute on docs index containers so sidebar placeholders and panels can be hidden with CSS while preserving the existing layout column override.
This commit is contained in:
+1
-3
@@ -236,10 +236,8 @@ function Page() {
|
||||
|
||||
const indexLayoutProps = data.isIndex
|
||||
? {
|
||||
sidebar: {
|
||||
enabled: false,
|
||||
},
|
||||
containerProps: {
|
||||
'data-docs-index': true,
|
||||
style: {
|
||||
'--fd-sidebar-col': '0px',
|
||||
} as CSSProperties,
|
||||
|
||||
@@ -62,3 +62,8 @@ body {
|
||||
[data-media-card] p {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
[data-docs-index] [data-sidebar-placeholder],
|
||||
[data-docs-index] [data-sidebar-panel] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user