Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/components/FileUpload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
"h-9 px-4 py-2 has-[>svg]:px-3",
)}
type="button"
>
<Link />{m.fileupload_choose_url()}
</AlertDialog.Trigger>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</script>

{#snippet Fallback()}
<span>{m.pagination_next()}</span>
<span class="hidden sm:inline">{m.pagination_next()}</span>
<ChevronRightIcon class="size-4" />
{/snippet}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

{#snippet Fallback()}
<ChevronLeftIcon class="size-4" />
<span>{m.pagination_previous()}</span>
<span class="hidden sm:inline">{m.pagination_previous()}</span>
{/snippet}

<PaginationPrimitive.PrevButton
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/news/ArticleEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
.map((t) => t.id);
</script>

<div class="flex flex-row gap-4 *:w-1/2">
<div class="flex flex-col gap-4 sm:flex-row sm:*:w-1/2">
<ArticleForm bind:activeTab {authorOptions} {superform} {allTags} {formEnd} />
<Article
article={{
Expand Down
14 changes: 11 additions & 3 deletions src/routes/(app)/news/ArticleForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import type { AuthorOption } from "$lib/news/getArticles";
import type { Snippet } from "svelte";
import { Spinner } from "$lib/components/ui/spinner";
import { goto } from "$lib/utils/redirect";

let {
allTags,
Expand Down Expand Up @@ -186,7 +187,14 @@
placeholder="https://youtube.com/v/..."><Pen /></Input
>
</div>
<Button type="submit"
>{m.save()}{#if $delayed}<Spinner />{/if}</Button
>
<div class="flex w-full flex-row justify-between gap-1.5">
<Button
onclick={formEnd ? () => goto("/news") : () => history.back()}
variant="outline">{m.cancel()}</Button
>
<Button type="submit" class="block grow"
>{formEnd ? m.news_publish() : m.save()}{#if $delayed}<Spinner
/>{/if}</Button
>
</div>
</form>
Loading