fix: cleaning repo

This commit is contained in:
2026-04-22 12:44:10 +02:00
parent ce4cd6939a
commit 7de1fa2850
13 changed files with 78 additions and 10 deletions

View File

@ -14,7 +14,7 @@ export default function GuideView() {
const pct = allQuests.length > 0 ? Math.round((completedCount / allQuests.length) * 100) : 0;
return (
<div style={{ flex: 1, display: "flex", overflow: "hidden" }}>
<div style={{ flex: 1, display: "flex", overflow: "hidden", minHeight: 0 }}>
{/* Main quest list */}
<div style={{ flex: 1, overflowY: "auto", padding: "20px 24px" }}>
{/* Guide header */}

View File

@ -13,7 +13,7 @@ export default function HomeView() {
const inProgressGuides = guides.filter(g => g.completed_quests > 0 && g.completed_quests < g.total_quests);
return (
<div style={{ flex: 1, overflowY: "auto", padding: "20px 24px" }}>
<div style={{ flex: 1, overflowY: "auto", padding: "20px 24px", minHeight: 0 }}>
{/* Header */}
<div style={{ marginBottom: "24px" }}>
<h1 style={{ fontSize: "18px", fontWeight: 700, color: "#f0c040", marginBottom: "4px" }}>

View File

@ -30,7 +30,7 @@ export default function Sidebar() {
/>
</div>
<div style={{ flex: 1, overflowY: "auto", padding: "8px 0" }}>
<div style={{ flex: 1, overflowY: "auto", padding: "8px 0", scrollbarWidth: "none" }}>
{filtered.length === 0 ? (
<div style={{ padding: "16px 12px", color: "#4a5568", fontSize: "12px", textAlign: "center" }}>
Aucun guide synchronisé

View File

@ -9,7 +9,7 @@ export default function TitleBar({ onOpenProfiles }: Props) {
const { alwaysOnTop, toggleAlwaysOnTop, syncing, syncGuides, view, closeGuide, activeGuideData } = useStore();
function handleDragMouseDown(e: React.MouseEvent) {
if (e.button === 0) {
if (e.button === 0 && !alwaysOnTop) {
getCurrentWindow().startDragging();
}
}
@ -36,7 +36,7 @@ export default function TitleBar({ onOpenProfiles }: Props) {
onMouseDown={handleDragMouseDown}
style={{
display: "flex", alignItems: "center", gap: "8px", flex: 1,
cursor: "grab", userSelect: "none",
cursor: alwaysOnTop ? "default" : "grab", userSelect: "none",
}}
>
<img src="/logo_tougli.png" style={{ pointerEvents: "none", width: "24px", height: "24px", objectFit: "contain" }} />