From 926139c232d6dbc6251f66f221a3b8c3f4344bc0 Mon Sep 17 00:00:00 2001 From: Caipira Date: Wed, 24 Aug 2022 21:02:06 +0900 Subject: [PATCH 1/2] enhance(client): mobile twitter url can be used as widget (#9057) --- packages/client/src/components/url-preview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/url-preview.vue b/packages/client/src/components/url-preview.vue index df4b0e53b..9b2a78535 100644 --- a/packages/client/src/components/url-preview.vue +++ b/packages/client/src/components/url-preview.vue @@ -68,7 +68,7 @@ let tweetHeight = $ref(150); const requestUrl = new URL(props.url); -if (requestUrl.hostname === 'twitter.com') { +if (requestUrl.hostname === 'twitter.com' || requestUrl.hostname === 'mobile.twitter.com') { const m = requestUrl.pathname.match(/^\/.+\/status(?:es)?\/(\d+)/); if (m) tweetId = m[1]; } From bb826ff54d746df542a5698f55825c5f7c7f555f Mon Sep 17 00:00:00 2001 From: Johann150 Date: Fri, 26 Aug 2022 08:39:31 +0200 Subject: [PATCH 2/2] fix: volume sliders Fixed a typo that made a required property be undefined. --- packages/client/src/pages/settings/sounds.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/settings/sounds.vue b/packages/client/src/pages/settings/sounds.vue index f29c9eb04..2d2b5a0a0 100644 --- a/packages/client/src/pages/settings/sounds.vue +++ b/packages/client/src/pages/settings/sounds.vue @@ -90,7 +90,7 @@ async function edit(type) { }, volume: { type: 'range', - mim: 0, + min: 0, max: 1, step: 0.05, textConverter: (v) => `${Math.floor(v * 100)}%`,