mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +01:00
Merge pull request #806 from ajnart/refactor/fix-default-img-paths
♻️ Fix default img paths
This commit is contained in:
@@ -375,7 +375,7 @@
|
|||||||
},
|
},
|
||||||
"pageTitle": "Homarr v0.11 ⭐️",
|
"pageTitle": "Homarr v0.11 ⭐️",
|
||||||
"logoImageUrl": "/imgs/logo/logo.png",
|
"logoImageUrl": "/imgs/logo/logo.png",
|
||||||
"faviconUrl": "/imgs/favicon/favicon-squared",
|
"faviconUrl": "/imgs/favicon/favicon-squared.png",
|
||||||
"backgroundImageUrl": "",
|
"backgroundImageUrl": "",
|
||||||
"customCss": "",
|
"customCss": "",
|
||||||
"colors": {
|
"colors": {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export const BackgroundChanger = () => {
|
|||||||
return (
|
return (
|
||||||
<TextInput
|
<TextInput
|
||||||
label={t('background.label')}
|
label={t('background.label')}
|
||||||
placeholder="/imgs/background.png"
|
placeholder="/imgs/backgrounds/background.png"
|
||||||
value={backgroundImageUrl}
|
value={backgroundImageUrl}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export const FaviconChanger = () => {
|
|||||||
const updateConfig = useConfigStore((x) => x.updateConfig);
|
const updateConfig = useConfigStore((x) => x.updateConfig);
|
||||||
const { config, name: configName } = useConfigContext();
|
const { config, name: configName } = useConfigContext();
|
||||||
const [faviconUrl, setFaviconUrl] = useState(
|
const [faviconUrl, setFaviconUrl] = useState(
|
||||||
config?.settings.customization.faviconUrl ?? '/imgs/favicon/favicon-squared.png'
|
config?.settings.customization.faviconUrl ?? '/imgs/favicon/favicon.svg'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!configName) return null;
|
if (!configName) return null;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export function Head() {
|
|||||||
{/* configure apple splash screen & touch icon */}
|
{/* configure apple splash screen & touch icon */}
|
||||||
<link
|
<link
|
||||||
rel="apple-touch-icon"
|
rel="apple-touch-icon"
|
||||||
href={config?.settings.customization.faviconUrl || '/imgs/favicon/favicon-squared.png'}
|
href={config?.settings.customization.faviconUrl || '/imgs/favicon/favicon.svg'}
|
||||||
/>
|
/>
|
||||||
<meta
|
<meta
|
||||||
name="apple-mobile-web-app-title"
|
name="apple-mobile-web-app-title"
|
||||||
|
|||||||
Reference in New Issue
Block a user