Enhancement: support full width container (#5021)

This commit is contained in:
shamoon 2025-03-17 12:25:10 -07:00 committed by GitHub
parent 42f1ed3c47
commit ce0102eb6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View File

@ -254,6 +254,14 @@ layout:
columns: 4 columns: 4
``` ```
### Full Width
You can make homepage take up the entire window width by adding:
```yaml
fullWidth: true
```
### Five Columns ### Five Columns
You can add a fifth column to services (when `style: columns` which is default) by adding: You can add a fifth column to services (when `style: columns` which is default) by adding:

View File

@ -417,7 +417,12 @@ function Home({ initialSettings }) {
<Script src="/api/config/custom.js" /> <Script src="/api/config/custom.js" />
<div className="relative container m-auto flex flex-col justify-start z-10 h-full"> <div
className={classNames(
settings.fullWidth ? "" : "container",
"relative m-auto flex flex-col justify-start z-10 h-full",
)}
>
<QuickLaunch <QuickLaunch
servicesAndBookmarks={servicesAndBookmarks} servicesAndBookmarks={servicesAndBookmarks}
searchString={searchString} searchString={searchString}