From 8295625a443c14a78fd51dea7d7940ec4de77b07 Mon Sep 17 00:00:00 2001 From: reya <123083837+reyamir@users.noreply.github.com> Date: Sat, 27 Jan 2024 15:53:19 +0700 Subject: [PATCH] feat: polish on windows --- apps/desktop/src/app.css | 6 +- .../ark/src/components/note/preview/video.tsx | 2 - .../ark/src/components/user/followButton.tsx | 9 ++- packages/ark/src/components/user/name.tsx | 2 +- packages/ark/src/provider.tsx | 3 +- packages/lume-column-timeline/src/home.tsx | 22 ++--- packages/ui/src/onboarding/finish.tsx | 8 +- packages/ui/src/onboarding/interest.tsx | 7 +- packages/ui/src/routes/suggest.tsx | 80 +++---------------- packages/utils/src/constants.ts | 35 +------- pnpm-lock.yaml | 52 ------------ 11 files changed, 48 insertions(+), 178 deletions(-) diff --git a/apps/desktop/src/app.css b/apps/desktop/src/app.css index fcc160cbe..4c25b06aa 100644 --- a/apps/desktop/src/app.css +++ b/apps/desktop/src/app.css @@ -14,7 +14,7 @@ } .shadow-toolbar { - box-shadow: 0 0 #0000,0 0 #0000,0 8px 24px 0 rgba(0,0,0,.2),0 2px 8px 0 rgba(0,0,0,.08),inset 0 0 0 1px rgba(0,0,0,.2),inset 0 0 0 2px hsla(0,0%,100%,.14) + box-shadow: 0 0 #0000, 0 0 #0000, 0 8px 24px 0 rgba(0, 0, 0, .2), 0 2px 8px 0 rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(0, 0, 0, .2), inset 0 0 0 2px hsla(0, 0%, 100%, .14) } } @@ -42,3 +42,7 @@ input::-ms-clear { .border { background-clip: padding-box; } + +media-controller { + @apply w-full; +} \ No newline at end of file diff --git a/packages/ark/src/components/note/preview/video.tsx b/packages/ark/src/components/note/preview/video.tsx index 3fced92d1..5a82a1ed1 100644 --- a/packages/ark/src/components/note/preview/video.tsx +++ b/packages/ark/src/components/note/preview/video.tsx @@ -5,7 +5,6 @@ import { MediaPlayButton, MediaTimeDisplay, MediaTimeRange, - MediaVolumeRange, } from "media-chrome/dist/react"; export function VideoPreview({ url }: { url: string }) { @@ -24,7 +23,6 @@ export function VideoPreview({ url }: { url: string }) { - diff --git a/packages/ark/src/components/user/followButton.tsx b/packages/ark/src/components/user/followButton.tsx index d7dc36721..20bf6adaa 100644 --- a/packages/ark/src/components/user/followButton.tsx +++ b/packages/ark/src/components/user/followButton.tsx @@ -13,6 +13,7 @@ export function UserFollowButton({ const [followed, setFollowed] = useState(false); const toggleFollow = async () => { + setLoading(true); if (!followed) { const add = await ark.createContact(target); if (add) setFollowed(true); @@ -20,6 +21,7 @@ export function UserFollowButton({ const remove = await ark.deleteContact(target); if (remove) setFollowed(false); } + setLoading(false); }; useEffect(() => { @@ -37,7 +39,12 @@ export function UserFollowButton({ }, []); return ( -