Skip to content

Commit

Permalink
Adjusting the spacing in Slack notification section (#4549)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaHegde authored Apr 9, 2024
1 parent 8875a6c commit cdb7216
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 3 additions & 1 deletion web-common/src/components/forms/FormSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
<Switch bind:checked={enabled} />
{/if}
</span>
{#if description}
{#if $$slots["description"]}
<slot name="description" />
{:else if description}
<span class="text-sm text-slate-600">{description}</span>
{/if}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,16 @@
</FormSection>
{:else}
<FormSection title="Slack notifications">
<span class="text-sm text-slate-600">
Slack has not been configured for this project. Read the <a
href="https://docs.rilldata.com/explore/alerts/slack"
target="_blank"
>
docs
</a> to learn more.
</span>
<svelte:fragment slot="description">
<span class="text-sm text-slate-600">
Slack has not been configured for this project. Read the <a
href="https://docs.rilldata.com/explore/alerts/slack"
target="_blank"
>
docs
</a> to learn more.
</span>
</svelte:fragment>
</FormSection>
{/if}
<FormSection
Expand Down

1 comment on commit cdb7216

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.