mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
🚧 Add board, Improve header
This commit is contained in:
@@ -5,12 +5,16 @@ import { useConfigContext } from '../../config/provider';
|
||||
export function Background() {
|
||||
const { config } = useConfigContext();
|
||||
|
||||
if (!config?.settings.customization.backgroundImageUrl) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Global
|
||||
styles={{
|
||||
body: {
|
||||
minHeight: '100vh',
|
||||
backgroundImage: `url('${config?.settings.customization.backgroundImageUrl}')` || '',
|
||||
backgroundImage: `url('${config?.settings.customization.backgroundImageUrl}')`,
|
||||
backgroundPosition: 'center center',
|
||||
backgroundSize: 'cover',
|
||||
backgroundRepeat: 'no-repeat',
|
||||
|
||||
Reference in New Issue
Block a user