From 99dd7cf8547a88c03bc6ead4dea93743176bd2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 17 Aug 2024 11:56:48 +0200 Subject: [PATCH 1/4] Fix dropdown menu again, I guess MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/dropdown-menu/dropdown-menu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dropdown-menu/dropdown-menu.tsx b/src/components/dropdown-menu/dropdown-menu.tsx index 6cee89a01..147aa00f2 100644 --- a/src/components/dropdown-menu/dropdown-menu.tsx +++ b/src/components/dropdown-menu/dropdown-menu.tsx @@ -109,7 +109,7 @@ const DropdownMenu = (props: IDropdownMenu) => { unlistenHistory.current = undefined; } const { state } = history.location; - if (goBack && state && (state as any).soapboxDropdownKey === dropdownHistoryKey.current) { + if (goBack && (state as any).soapboxDropdownKey && (state as any).soapboxDropdownKey === dropdownHistoryKey.current) { history.goBack(); (history.location.state as any).soapboxDropdownKey = true; } From d722732f631ad2ceba8d6b482b6ed6ec78860d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 17 Aug 2024 12:39:10 +0200 Subject: [PATCH 2/4] Fix modal position MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/ui/modal/modal.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/ui/modal/modal.tsx b/src/components/ui/modal/modal.tsx index 9ec812662..9b7a131c5 100644 --- a/src/components/ui/modal/modal.tsx +++ b/src/components/ui/modal/modal.tsx @@ -84,12 +84,10 @@ const Modal = React.forwardRef(({ }, ref) => { const intl = useIntl(); const buttonRef = React.useRef(null); - const firstRender = React.useRef(true); + const [firstRender, setFirstRender] = React.useState(true); React.useEffect(() => { - if (firstRender.current) { - firstRender.current = false; - } + setFirstRender(false); }, []); React.useEffect(() => { @@ -103,8 +101,8 @@ const Modal = React.forwardRef(({ ref={ref} data-testid='modal' className={clsx(className, 'pointer-events-auto relative mx-auto block w-full rounded-2xl bg-white p-6 text-start align-middle text-gray-900 shadow-xl transition-all ease-in-out black:bg-black dark:bg-primary-900 dark:text-gray-100', widths[width], { - 'bottom-0': !firstRender.current, - '-bottom-32': firstRender.current, + 'bottom-0': !firstRender, + '-bottom-32': firstRender, })} >
From a2ae6cce574f88ba33562921a0ea8ebe56ad45bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 17 Aug 2024 23:15:09 +0200 Subject: [PATCH 3/4] fix dropdown menu again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/dropdown-menu/dropdown-menu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dropdown-menu/dropdown-menu.tsx b/src/components/dropdown-menu/dropdown-menu.tsx index 147aa00f2..bb0d391eb 100644 --- a/src/components/dropdown-menu/dropdown-menu.tsx +++ b/src/components/dropdown-menu/dropdown-menu.tsx @@ -109,7 +109,7 @@ const DropdownMenu = (props: IDropdownMenu) => { unlistenHistory.current = undefined; } const { state } = history.location; - if (goBack && (state as any).soapboxDropdownKey && (state as any).soapboxDropdownKey === dropdownHistoryKey.current) { + if (goBack && state && (state as any).soapboxDropdownKey && (state as any).soapboxDropdownKey === dropdownHistoryKey.current) { history.goBack(); (history.location.state as any).soapboxDropdownKey = true; } From af71e75b7e65e0bd85650c4286cc361e0dd5cc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 17 Aug 2024 23:22:25 +0200 Subject: [PATCH 4/4] Update Polish translation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/locales/pl.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/locales/pl.json b/src/locales/pl.json index b4665a717..747533edb 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -3,6 +3,7 @@ "accordion.collapse": "Zwiń", "accordion.expand": "Rozwiń", "account.add_or_remove_from_list": "Dodaj lub usuń z list", + "account.avatar.alt": "Awatar", "account.badges.bot": "Bot", "account.birthday": "Urodzony(-a) {date}", "account.birthday_today": "Ma dziś urodziny!", @@ -652,6 +653,7 @@ "edit_profile.fields.meta_fields.content_placeholder": "Treść", "edit_profile.fields.meta_fields.label_placeholder": "Podpis", "edit_profile.fields.meta_fields_label": "Pola profilu", + "edit_profile.fields.rss_label": "Włącz kanał RSS dla publicznych wpisów", "edit_profile.fields.stranger_notifications_label": "Blokuj powiadomienia od nieznajomych", "edit_profile.header": "Edytuj profil", "edit_profile.hints.accepts_email_list": "Otrzymuj wiadomości i nowości marketingowe.", @@ -701,6 +703,7 @@ "empty_column.blocks": "Nie zablokowałeś(-aś) jeszcze żadnego użytkownika.", "empty_column.bookmarks": "Nie masz jeszcze żadnej zakładki. Kiedy dodasz jakąś, pojawi się ona tutaj.", "empty_column.bookmarks.folder": "Nie masz jeszcze żadnej zakładki w tym folderze. Kiedy dodasz jakąś, pojawi się ona tutaj.", + "empty_column.bubble": "Nie ma tu jeszczego żadnego wpisu! Napisz coś, aby wypełnić tę oś", "empty_column.community": "Lokalna oś czasu jest pusta. Napisz coś publicznie, aby zagaić!", "empty_column.direct": "Nie masz żadnych wiadomości bezpośrednich. Kiedy dostaniesz lub wyślesz jakąś, pojawi się ona tutaj.", "empty_column.domain_blocks": "Brak ukrytych domen.", @@ -855,7 +858,13 @@ "group.tabs.members": "Członkowie", "group.update.success": "Pomyślnie zapisano grupę", "group.upload_avatar": "Wyślij awatar", + "group.upload_avatar.alt.confirm": "Zapisz", + "group.upload_avatar.alt.heading": "Zmień opis awataru", + "group.upload_avatar.alt.placeholder": "Opis zdjęcia", "group.upload_banner": "Wyślij zdjęcie", + "group.upload_banner.alt.confirm": "Zapisz", + "group.upload_banner.alt.heading": "Zmień opis nagłówka", + "group.upload_banner.alt.placeholder": "Opis zdjęcia", "group.upload_banner.title": "Wyślij zdjęcie w tle", "groups.discover.search.results.member_count": "{members, plural, one {członek} other {członków}}", "groups.empty.subtitle": "Odkrywaj grupy do których możesz dołączyć lub utwórz własną.", @@ -1189,6 +1198,11 @@ "privacy.change": "Dostosuj widoczność wpisów", "privacy.direct.long": "Widoczny tylko dla wspomnianych", "privacy.direct.short": "Bezpośrednio", + "privacy.local": "{privacy} (tylko lokalnie)", + "privacy.local.long": "Widoczny tylko na Twojej instancji", + "privacy.local.short": "Tylko lokalnie", + "privacy.mutuals_only.long": "Opublikuj tylko dla wzajemnie obserwujących", + "privacy.mutuals_only.short": "Tylko wzajemni", "privacy.private.long": "Widoczny tylko dla osób, które Cię obserwują", "privacy.private.short": "Tylko dla obserwujących", "privacy.public.long": "Widoczny na publicznych osiach czasu",