diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4b493bc7..943dd293 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -34,7 +34,7 @@ In order to run Elk with PWA enabled, run `pnpm run dev:pwa` in Elk's root folde You should test the Elk PWA application on private browsing mode on any Chromium based browser: will not work on Firefox and Safari. If not using private browsing mode, you will need to uninstall the PWA application from your browser once you finish testing: -- Open `Dev Tools` (`Option + ⌘ + J` on MacOS, `Shift + CTRL + J` on Windows/Linux) +- Open `Dev Tools` (`Option + ⌘ + J` on macOS, `Shift + CTRL + J` on Windows/Linux) - Go to `Application > Storage`, you should check following checkboxes: - Application: [x] Unregister service worker - Storage: [x] IndexedDB and [x] Local and session storage diff --git a/components/account/AccountFollowButton.vue b/components/account/AccountFollowButton.vue index d64653e6..bd073df5 100644 --- a/components/account/AccountFollowButton.vue +++ b/components/account/AccountFollowButton.vue @@ -60,18 +60,14 @@ useCommand({ }) const buttonStyle = $computed(() => { - // Skeleton while loading, avoid primary color flash - if (!relationship) - return 'text-inverted' - - if (relationship.blocking) + if (relationship?.blocking) return 'text-inverted bg-red border-red' - if (relationship.muting) + if (relationship?.muting) return 'text-base bg-code border-base' // If following, use a label style with a strong border for Mutuals - if (relationship.following) + if (relationship?.following) return `text-base ${relationship.followedBy ? 'border-strong' : 'border-base'}` // If not following, use a button style @@ -99,7 +95,7 @@ const buttonStyle = $computed(() => {
{{ - input.length + input.trim().length ? $t('common.not_found') : $t('search.search_desc') }} diff --git a/components/notification/NotificationEnablePushNotification.client.vue b/components/notification/NotificationEnablePushNotification.client.vue index 175b33d7..3b1c654b 100644 --- a/components/notification/NotificationEnablePushNotification.client.vue +++ b/components/notification/NotificationEnablePushNotification.client.vue @@ -1,4 +1,6 @@ @@ -38,8 +42,19 @@ const isLegacyAccount = computed(() => !currentUser.value?.vapidKey)
diff --git a/components/search/SearchWidget.vue b/components/search/SearchWidget.vue index 8a008381..e9db61b2 100644 --- a/components/search/SearchWidget.vue +++ b/components/search/SearchWidget.vue @@ -77,16 +77,21 @@ const activate = () => {
- + {{ t('search.search_desc') }} -