fix(geoportal): load MapLibre CSS via CDN link injection + fullscreen layout
- Static CSS import doesn't work with next/dynamic + standalone output. Now injects a <link> tag to unpkg CDN at module load time (bulletproof). - Geoportal is now fullscreen: map fills entire viewport below the header, no duplicate title/description, negative margins bleed to edges. - Removed page-level CSS imports (no longer needed). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,26 +1,12 @@
|
||||
"use client";
|
||||
|
||||
import "maplibre-gl/dist/maplibre-gl.css";
|
||||
import { FeatureGate } from "@/core/feature-flags";
|
||||
import { useI18n } from "@/core/i18n";
|
||||
import { GeoportalModule } from "@/modules/geoportal";
|
||||
|
||||
export default function GeoportalPage() {
|
||||
const { t } = useI18n();
|
||||
|
||||
return (
|
||||
<FeatureGate flag="module.geoportal" fallback={<ModuleDisabled />}>
|
||||
<div className="mx-auto max-w-7xl space-y-6">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold tracking-tight">
|
||||
{t("geoportal.title")}
|
||||
</h1>
|
||||
<p className="text-muted-foreground">
|
||||
{t("geoportal.description")}
|
||||
</p>
|
||||
</div>
|
||||
<GeoportalModule />
|
||||
</div>
|
||||
<GeoportalModule />
|
||||
</FeatureGate>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
"use client";
|
||||
|
||||
import "maplibre-gl/dist/maplibre-gl.css";
|
||||
import { FeatureGate } from "@/core/feature-flags";
|
||||
import { useI18n } from "@/core/i18n";
|
||||
import { ParcelSyncModule } from "@/modules/parcel-sync";
|
||||
|
||||
Reference in New Issue
Block a user