Merge pull request #806 from ajnart/refactor/fix-default-img-paths

♻️ Fix default img paths
This commit is contained in:
Thomas Camlong
2023-04-12 23:52:24 +09:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -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": {

View File

@@ -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}
/> />

View File

@@ -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;

View File

@@ -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"