Skip to content

Commit

Permalink
Fix bracketed lists with multiple entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Aug 30, 2024
1 parent 27a3522 commit 43c2cb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/components/fields/LinkedTable.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<script>
import { List } from "flowbite-svelte";
export let bracket;
import "./bracket.css";
</script>

<List class={bracket ? "bracket-list" : null}>
<List class="space-y-2">
<slot/>
</List>
6 changes: 4 additions & 2 deletions src/components/logic/RecursiveEasyDBDetailView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import Waiting from "../utils/Waiting.svelte";
import Block from "../splitter/Block.svelte";
import "./bracket.css";
export let fields;
export let data;
export let table;
Expand Down Expand Up @@ -115,9 +117,9 @@
<FieldLabel field={firstField} table={firstField.other_table_name_hint}/>
</P>
{/if}
<LinkedTable bracket={!decideCondense(firstField)}>
<LinkedTable>
{#each linkedSubData(data, table, firstField) as subdata}
<Li>
<Li class={decideCondense(firstField) ? null: "bracket-list"}>
<svelte:self fields={firstField.mask.fields} data={subdata} table={firstField.other_table_name_hint} condensed={decideCondense(firstField)} output={output}/>
</Li>
{/each}
Expand Down
File renamed without changes.

0 comments on commit 43c2cb3

Please sign in to comment.