diff --git a/.histoire/screenshots/src-lib-components-shipedit-carrier-story-svelte-_default-1280x800.png b/.histoire/screenshots/src-lib-components-shipedit-carrier-story-svelte-_default-1280x800.png index bb30599..5c20207 100644 Binary files a/.histoire/screenshots/src-lib-components-shipedit-carrier-story-svelte-_default-1280x800.png and b/.histoire/screenshots/src-lib-components-shipedit-carrier-story-svelte-_default-1280x800.png differ diff --git a/.histoire/screenshots/src-lib-components-shipedit-identification-story-svelte-_default-1280x800.png b/.histoire/screenshots/src-lib-components-shipedit-identification-story-svelte-_default-1280x800.png index bbee9c6..85ace74 100644 Binary files a/.histoire/screenshots/src-lib-components-shipedit-identification-story-svelte-_default-1280x800.png and b/.histoire/screenshots/src-lib-components-shipedit-identification-story-svelte-_default-1280x800.png differ diff --git a/.histoire/screenshots/src-lib-components-shipedit-propulsion-engine-story-svelte-_default-1280x800.png b/.histoire/screenshots/src-lib-components-shipedit-propulsion-engine-story-svelte-_default-1280x800.png index bff1768..8765c34 100644 Binary files a/.histoire/screenshots/src-lib-components-shipedit-propulsion-engine-story-svelte-_default-1280x800.png and b/.histoire/screenshots/src-lib-components-shipedit-propulsion-engine-story-svelte-_default-1280x800.png differ diff --git a/.histoire/screenshots/src-lib-components-shipedit-propulsion-ftl-story-svelte-_default-1280x800.png b/.histoire/screenshots/src-lib-components-shipedit-propulsion-ftl-story-svelte-_default-1280x800.png index e303a6b..c0c80e3 100644 Binary files a/.histoire/screenshots/src-lib-components-shipedit-propulsion-ftl-story-svelte-_default-1280x800.png and b/.histoire/screenshots/src-lib-components-shipedit-propulsion-ftl-story-svelte-_default-1280x800.png differ diff --git a/.histoire/screenshots/src-lib-components-shipedit-propulsion-story-svelte-_default-1280x800.png b/.histoire/screenshots/src-lib-components-shipedit-propulsion-story-svelte-_default-1280x800.png index 112c982..8ee58be 100644 Binary files a/.histoire/screenshots/src-lib-components-shipedit-propulsion-story-svelte-_default-1280x800.png and b/.histoire/screenshots/src-lib-components-shipedit-propulsion-story-svelte-_default-1280x800.png differ diff --git a/.histoire/screenshots/src-lib-components-shipedit-story-svelte-_default-1280x800.png b/.histoire/screenshots/src-lib-components-shipedit-story-svelte-_default-1280x800.png index 719a58e..95001a9 100644 Binary files a/.histoire/screenshots/src-lib-components-shipedit-story-svelte-_default-1280x800.png and b/.histoire/screenshots/src-lib-components-shipedit-story-svelte-_default-1280x800.png differ diff --git a/.histoire/screenshots/src-lib-components-shipedit-weaponry-story-svelte-_default-1280x800.png b/.histoire/screenshots/src-lib-components-shipedit-weaponry-story-svelte-_default-1280x800.png index f40d652..d0d2c3e 100644 Binary files a/.histoire/screenshots/src-lib-components-shipedit-weaponry-story-svelte-_default-1280x800.png and b/.histoire/screenshots/src-lib-components-shipedit-weaponry-story-svelte-_default-1280x800.png differ diff --git a/.histoire/screenshots/src-lib-components-shipitem-story-svelte-_default-1280x800.png b/.histoire/screenshots/src-lib-components-shipitem-story-svelte-_default-1280x800.png index e85c75b..cd94684 100644 Binary files a/.histoire/screenshots/src-lib-components-shipitem-story-svelte-_default-1280x800.png and b/.histoire/screenshots/src-lib-components-shipitem-story-svelte-_default-1280x800.png differ diff --git a/src/lib/components/Field.svelte b/src/lib/components/Field.svelte index 506ea34..fc64839 100644 --- a/src/lib/components/Field.svelte +++ b/src/lib/components/Field.svelte @@ -1,22 +1,35 @@ -
- {#if label} - - {/if} +
- + + {#if label} + + {/if}
diff --git a/src/lib/components/Section.svelte b/src/lib/components/Section.svelte index fe3edf6..39e9a51 100644 --- a/src/lib/components/Section.svelte +++ b/src/lib/components/Section.svelte @@ -15,9 +15,12 @@ grid-column: 1 / span 3 !important; align-items: baseline; gap: 1em; + margin-bottom: 1em; + background-color: var(--primary-background); } h2 { font-weight: bold; + font-size: var(--font-scale-12); } hr { flex: 1; diff --git a/src/lib/components/ShipEdit.svelte b/src/lib/components/ShipEdit.svelte index 242843f..ada6960 100644 --- a/src/lib/components/ShipEdit.svelte +++ b/src/lib/components/ShipEdit.svelte @@ -1,9 +1,7 @@ -
- - - - -
+ + + + diff --git a/src/lib/components/ShipEdit/Propulsion/Ftl.svelte b/src/lib/components/ShipEdit/Propulsion/Ftl.svelte index a6bbd47..f078dcb 100644 --- a/src/lib/components/ShipEdit/Propulsion/Ftl.svelte +++ b/src/lib/components/ShipEdit/Propulsion/Ftl.svelte @@ -1,12 +1,13 @@ - +
FTL drive
+
diff --git a/src/routes/page.test.js b/src/routes/page.test.js index 280358b..c4057c9 100644 --- a/src/routes/page.test.js +++ b/src/routes/page.test.js @@ -17,9 +17,9 @@ test("we can pass a store", async () => { api.dispatch.updateIdentification({ shipClass: "Bonobo" }); - const { getByPlaceholderText } = render(Page, { context }); + const { getByLabelText } = render(Page, { context }); - const classInput = getByPlaceholderText("ship class"); + const classInput = getByLabelText("ship class"); await fireEvent.input(classInput, { target: { value: "Tarzan" } }); expect(classInput.value).toEqual("Tarzan");