diff --git a/ui/app/assets/css/main.css b/ui/app/assets/css/main.css index 82efc6b..28925b4 100644 --- a/ui/app/assets/css/main.css +++ b/ui/app/assets/css/main.css @@ -208,8 +208,8 @@ html, body { @layer components { .prose-tight-list li { - line-height: 0.5 !important; - margin-top: 0.25rem !important; - margin-bottom: 0.25rem !important; + line-height: 1.5 !important; + margin-top: 0.1rem !important; + margin-bottom: 0.1rem !important; } } diff --git a/ui/app/components/Flow.vue b/ui/app/components/Flow.vue index 1d5bf58..72716b5 100644 --- a/ui/app/components/Flow.vue +++ b/ui/app/components/Flow.vue @@ -78,21 +78,21 @@ onNodeClick(event => { adtOpts.value = {} }) -watch( - () => ({ caller: item.value, opts: flowOpts.value, tags: props.tags, ch: chPx.value }), - async ({ caller, opts, tags, ch }) => { - // This should be a caller or adt, but currently only caller is supported. - if (!caller.name) return; +// () => ({ caller: item.value, opts: flowOpts.value, tags: props.tags, ch: chPx.value }), +watchEffect(async () => { + const caller = item.value + // This should be a caller or adt, but currently only caller is supported. + if (!caller.name) return; - const px = Math.ceil(ch); - const plotConfig = new PlotConfig(tags, px, opts); + const px = Math.ceil(chPx.value); + const plotConfig = new PlotConfig(props.tags, px, flowOpts.value); - const plot = new Plot(plotConfig, elk); - await plot.plot(caller); + const plot = new Plot(plotConfig, elk); + await plot.plot(caller); - const { nodes, edges, config } = plot; - data.value = { nodes, edges, id_to_item: config.id_to_item }; - }) + const { nodes, edges, config } = plot; + data.value = { nodes, edges, id_to_item: config.id_to_item }; +}) watch(() => flowOpts.value.fit, val => { if (val) { fitView(); flowOpts.value.fit = false; } diff --git a/ui/app/components/code/Adt.vue b/ui/app/components/code/Adt.vue index d7d0fd6..1f0416f 100644 --- a/ui/app/components/code/Adt.vue +++ b/ui/app/components/code/Adt.vue @@ -68,7 +68,7 @@ const groupedFieldAccess = computed<{ [key: string]: AdtPanelItem[] }>(() => { // Constructors const constructors = computed(() => - gen(props.adt?.constructors, "Constructors", `All Constructors of ${props.adt?.name ?? ''}`) + gen(props.adt?.constructors, "Constructors", `All Constructors of \`${props.adt?.name ?? ''}\``) ) // As arguments diff --git a/ui/app/components/widget/TopBar.vue b/ui/app/components/widget/TopBar.vue index 3dbbe91..85cadb0 100644 --- a/ui/app/components/widget/TopBar.vue +++ b/ui/app/components/widget/TopBar.vue @@ -18,7 +18,7 @@ - + @@ -33,22 +33,23 @@ - - + + - - - - - - - + + + + + + + + @@ -67,7 +68,7 @@