feat: add a label to the kind filter button (#527)

Co-authored-by: Daniel  Vergara <daniel.omar.vergara@gmail.com>
This commit is contained in:
Cody Tseng
2025-09-02 22:38:17 +08:00
committed by GitHub
parent 3c657dfa8c
commit 45e20329a3
16 changed files with 20 additions and 19 deletions

View File

@@ -74,16 +74,17 @@ export default function KindFilter({
<Button
variant="ghost"
size="titlebar-icon"
className="relative"
className="relative w-fit px-3"
onClick={() => {
if (isSmallScreen) {
setOpen(true)
}
}}
>
<ListFilter />
<ListFilter size={16} />
{t('Filter')}
{isDifferentFromSaved && (
<div className="absolute size-2 rounded-full bg-primary right-2 top-2.5 ring-2 ring-background" />
<div className="absolute size-2 rounded-full bg-primary left-7 top-2 ring-2 ring-background" />
)}
</Button>
)
@@ -150,7 +151,7 @@ export default function KindFilter({
checked={isPersistent}
onCheckedChange={(checked) => setIsPersistent(!!checked)}
/>
<span className="text-sm">{t('Remember my choice')}</span>
<span className="text-sm">{t('Set as default filter')}</span>
</Label>
<Button

View File

@@ -364,7 +364,7 @@ export default {
'Video Posts': 'مشاركات الفيديو',
'Select All': 'تحديد الكل',
'Clear All': 'مسح الكل',
'Remember my choice': 'تذكر اختياري',
'Set as default filter': 'تعيين كمرشح افتراضي',
Apply: 'تطبيق',
Reset: 'إعادة تعيين',
'Share something on this Relay': 'شارك شيئاً على هذا الريلاي',

View File

@@ -372,7 +372,7 @@ export default {
'Video Posts': 'Videobeiträge',
'Select All': 'Alle auswählen',
'Clear All': 'Alle löschen',
'Remember my choice': 'Meine Auswahl merken',
'Set as default filter': 'Als Standardfilter festlegen',
Apply: 'Anwenden',
Reset: 'Zurücksetzen',
'Share something on this Relay': 'Teile etwas auf diesem Relay',

View File

@@ -363,7 +363,7 @@ export default {
'Video Posts': 'Video Posts',
'Select All': 'Select All',
'Clear All': 'Clear All',
'Remember my choice': 'Remember my choice',
'Set as default filter': 'Set as default filter',
Apply: 'Apply',
Reset: 'Reset',
'Share something on this Relay': 'Share something on this Relay',

View File

@@ -368,7 +368,7 @@ export default {
'Video Posts': 'Publicaciones de video',
'Select All': 'Seleccionar todo',
'Clear All': 'Limpiar todo',
'Remember my choice': 'Recordar mi elección',
'Set as default filter': 'Establecer como filtro predeterminado',
Apply: 'Aplicar',
Reset: 'Restablecer',
'Share something on this Relay': 'Comparte algo en este relé',

View File

@@ -365,7 +365,7 @@ export default {
'Video Posts': 'پست‌های ویدیو',
'Select All': 'انتخاب همه',
'Clear All': 'پاک کردن همه',
'Remember my choice': 'انتخاب من را به خاطر بسپار',
'Set as default filter': 'تنظیم به عنوان فیلتر پیش‌فرض',
Apply: 'اعمال',
Reset: 'بازنشانی',
'Share something on this Relay': 'در این رله چیزی به اشتراک بگذارید',

View File

@@ -370,7 +370,7 @@ export default {
'Video Posts': 'Publications vidéo',
'Select All': 'Tout sélectionner',
'Clear All': 'Tout effacer',
'Remember my choice': 'Se souvenir de mon choix',
'Set as default filter': 'Définir comme filtre par défaut',
Apply: 'Appliquer',
Reset: 'Réinitialiser',
'Share something on this Relay': 'Partager quelque chose sur ce relais',

View File

@@ -368,7 +368,7 @@ export default {
'Video Posts': 'Post video',
'Select All': 'Seleziona tutto',
'Clear All': 'Cancella tutto',
'Remember my choice': 'Ricorda la mia scelta',
'Set as default filter': 'Imposta come filtro predefinito',
Apply: 'Applica',
Reset: 'Reimposta',
'Share something on this Relay': 'Condividi qualcosa su questo Relay',

View File

@@ -365,7 +365,7 @@ export default {
'Video Posts': 'ビデオ投稿',
'Select All': 'すべて選択',
'Clear All': 'すべてクリア',
'Remember my choice': '選択を記憶',
'Set as default filter': 'デフォルトフィルターに設定',
Apply: '適用',
Reset: 'リセット',
'Share something on this Relay': 'このリレーで何かを共有する',

View File

@@ -365,7 +365,7 @@ export default {
'Video Posts': '비디오 게시물',
'Select All': '모두 선택',
'Clear All': '모두 지우기',
'Remember my choice': '내 선택 기억하기',
'Set as default filter': '기본 필터로 설정',
Apply: '적용',
Reset: '초기화',
'Share something on this Relay': '이 릴레이에서 무언가를 공유하세요',

View File

@@ -369,7 +369,7 @@ export default {
'Video Posts': 'Posty wideo',
'Select All': 'Zaznacz wszystko',
'Clear All': 'Wyczyść wszystko',
'Remember my choice': 'Zapamiętaj mój wybór',
'Set as default filter': 'Ustaw jako domyślny filtr',
Apply: 'Zastosuj',
Reset: 'Resetuj',
'Share something on this Relay': 'Udostępnij coś na tym przekaźniku',

View File

@@ -366,7 +366,7 @@ export default {
'Video Posts': 'Vídeos',
'Select All': 'Selecionar tudo',
'Clear All': 'Limpar tudo',
'Remember my choice': 'Lembrar minha escolha',
'Set as default filter': 'Definir como filtro padrão',
Apply: 'Aplicar',
Reset: 'Redefinir',
'Share something on this Relay': 'Compartilhe algo neste Relay',

View File

@@ -368,7 +368,7 @@ export default {
'Video Posts': 'Vídeos',
'Select All': 'Seleccionar tudo',
'Clear All': 'Limpar tudo',
'Remember my choice': 'Lembrar a minha escolha',
'Set as default filter': 'Definir como filtro predefinido',
Apply: 'Aplicar',
Reset: 'Repor',
'Share something on this Relay': 'Partilhe algo neste Relay',

View File

@@ -369,7 +369,7 @@ export default {
'Video Posts': 'Видео посты',
'Select All': 'Выбрать все',
'Clear All': 'Очистить все',
'Remember my choice': 'Запомнить мой выбор',
'Set as default filter': 'Установить как фильтр по умолчанию',
Apply: 'Применить',
Reset: 'Сбросить',
'Share something on this Relay': 'Поделиться чем-то на этом релее',

View File

@@ -362,7 +362,7 @@ export default {
'Video Posts': 'โพสต์วิดีโอ',
'Select All': 'เลือกทั้งหมด',
'Clear All': 'ล้างทั้งหมด',
'Remember my choice': 'จำการเลือกของฉัน',
'Set as default filter': 'ตั้งเป็นตัวกรองเริ่มต้น',
Apply: 'ใช้',
Reset: 'รีเซ็ต',
'Share something on this Relay': 'แชร์บางอย่างบนรีเลย์นี้',

View File

@@ -360,7 +360,7 @@ export default {
'Video Posts': '视频帖子',
'Select All': '全选',
'Clear All': '清空',
'Remember my choice': '记住我的选择',
'Set as default filter': '设为默认过滤器',
Apply: '应用',
Reset: '重置',
'Share something on this Relay': '在此服务器上分享点什么',