fix: show loading spinner instead of error for HEIC preview, default fullscreen details to visible

Replace static "Preview not available" and "Cannot preview this image
format" messages with a loading spinner in ImageViewer and SplitCanvas,
since HEIC files get server-side conversion and the preview appears
after a few seconds. Also default showDetails to true on /fullscreen.
This commit is contained in:
ashim-hq
2026-04-19 20:38:51 +08:00
parent 5c897f3c1d
commit fc98037eb1
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import { useFeaturesStore } from "@/stores/features-store";
export function FullscreenGridPage() {
const [search, setSearch] = useState("");
const [showDetails, setShowDetails] = useState(false);
const [showDetails, setShowDetails] = useState(true);
const navigate = useNavigate();
const [disabledTools, setDisabledTools] = useState<string[]>([]);
const [experimentalEnabled, setExperimentalEnabled] = useState(false);