fix(front:pathTooltip): correct importation of pathTooltip.css

This commit is contained in:
Edouard Vanbelle
2026-05-19 14:53:16 +02:00
parent 7edc30978a
commit 3557bc596a
3 changed files with 3 additions and 1 deletions
+2
View File
@@ -173,6 +173,7 @@ fn resolve_css_imports(entry: &Path, css_dir: &Path) -> String {
if let Some(rel) = extract_import_path(t) {
let resolved = css_dir.join(rel.trim_start_matches("./"));
if resolved.exists() {
println!("cargo:warning=CSS importing: {}", resolved.display());
out.push_str(&fs::read_to_string(&resolved).unwrap_or_default());
out.push('\n');
} else {
@@ -238,6 +239,7 @@ fn minify_tree_css(dir: &Path) {
if fname.starts_with("app.") || fname == "main.css" {
continue;
}
println!("cargo:warning=CSS importing: {}", p.display());
if let Ok(src) = fs::read_to_string(&p) {
let _ = fs::write(&p, css_minify_safe(&src));
}
+1
View File
@@ -27,6 +27,7 @@
@import url("./components/search.css");
@import url("./components/icons.css");
@import url("./components/csp-utilities.css");
@import url("./components/pathTooltip.css");
/* Theme */
@import url("./themes/dark.css");
-1
View File
@@ -17,7 +17,6 @@
<link rel="stylesheet" href="/css/views/photos.css">
<link rel="stylesheet" href="/css/views/photosLightbox.css">
<link rel="stylesheet" href="/css/views/music.css">
<link rel="stylesheet" href="/css/components/pathTooltip.css">
<!-- Scripts (defer: download in parallel, execute in order, after HTML parsed) -->
<script defer type="module" src="/js/core/i18n.js"></script>