+
+
Units
+
+ Browse notes and questions by unit. Pin the units you are studying to keep them handy.
+
+
+
+ {#if loading}
+
Loading
+ {:else}
+
+
+
+
+ {#if selectedUnit}
+
+
+
+ {selectedUnit.code}{selectedUnit.code2 ? ` / ${selectedUnit.code2}` : ""}
+
+
{selectedUnit.name}
+
+ {#if selectedUnit.description}
+
{selectedUnit.description}
+ {/if}
+
+ {#if contentLoading}
+
Loading
+ {:else}
+ {#if notes.length > 0}
+
Notes
+ {#each notes as note}
+
+ {/each}
+ {/if}
+
+ {#if questions.length > 0}
+
Questions
+ {#each questions as question}
+
+ {/each}
+ {/if}
+
+ {#if notes.length === 0 && questions.length === 0}
+
No content for this unit yet.
+
+ {/if}
+ {/if}
+
+ {:else}
+
Select a unit to see its notes and questions.
+ {/if}
+ {/if}
+
From 44c6275ee852a2eed836b366ed094dfb9d50a392 Mon Sep 17 00:00:00 2001
From: liyunze <50455574+liyunze-coding@users.noreply.github.com>
Date: Wed, 2 Sep 2026 11:21:42 +0800
Subject: [PATCH 2/2] formatted
---
src/lib/components/UnitFilter.svelte | 2 +-
src/routes/layout.css | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lib/components/UnitFilter.svelte b/src/lib/components/UnitFilter.svelte
index 9e9a161..7fc2d09 100644
--- a/src/lib/components/UnitFilter.svelte
+++ b/src/lib/components/UnitFilter.svelte
@@ -83,7 +83,7 @@
{/snippet}
-