feat: add mark page resolved button to moderation

This commit is contained in:
James Xylight committed 2025-02-12 17:28:44 -08:00
1 parent 2b08d0dd3f
commit bf417a97c4
4 files changed
+75 -16

No files matched your search

+1 -1
View File
@@ -17,5 +17,5 @@
<div
class="bg-primary-900 dark:bg-primary-100 h-1 rounded-full"
style="width: {tween.current * 100}%;"
style="width: {tween.current >= 0 ? tween.current * 100 : 0}%;"
></div>
+12 -10
View File
@@ -47,16 +47,18 @@
title={label}
style="transition-property: background-color, filter;"
>
{#if icon}
<Icon
src={icon}
micro={isPanel}
solid={!isPanel && isSelected}
size={isPanel ? '16' : '18'}
/>
{:else}
{@render customIcon?.({ size: isPanel ? 16 : 18, isSelected })}
{/if}
{#snippet prefix()}
{#if icon}
<Icon
src={icon}
micro={isPanel}
solid={!isPanel && isSelected}
size={isPanel ? '16' : '18'}
/>
{:else}
{@render customIcon?.({ size: isPanel ? 16 : 18, isSelected })}
{/if}
{/snippet}
<span class="hidden {adaptive ? '@3xl:block' : ''}">{label}</span>
{@render children?.()}
</Button>
+3 -1
View File
@@ -312,7 +312,9 @@
"resolve": "Resolve",
"resolved": "Resolved",
"unresolve": "Unresolve",
"resolvedBy": "Resolved by"
"resolvedBy": "Resolved by",
"markAll": "Mark page resolved",
"markAllComplete": "Batch action completed."
},
"admin": {
"title": "Administration",