diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 987ef7b6..b0be73c7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,9 +17,8 @@ jobs: version: 8 - name: install frontend dependencies run: pnpm install - - uses: tauri-apps/tauri-action@v0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: build tauri app + run: pnpm tauri build --ci -v --target universal-apple-darwin - uses: actions/upload-artifact@v2 with: name: "overlayed-unstable-mac" @@ -39,9 +38,8 @@ jobs: version: 8 - name: install frontend dependencies run: pnpm install - - uses: tauri-apps/tauri-action@v0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: build tauri app + run: pnpm tauri build --ci -v --target x86_64-pc-windows-msvc - uses: actions/upload-artifact@v2 with: name: "overlayed-unstable-windows" diff --git a/public/img/default.png b/public/img/default.png new file mode 100644 index 00000000..16559966 Binary files /dev/null and b/public/img/default.png differ diff --git a/src/components/user.tsx b/src/components/user.tsx index 04b0dd30..e266fc42 100644 --- a/src/components/user.tsx +++ b/src/components/user.tsx @@ -7,7 +7,7 @@ export const User = ({ item }: { item: OverlayedUser }) => { const avatarUrl = avatarHash ? `https://cdn.discordapp.com/avatars/${id}/${avatarHash}.jpg` - : "./img/default.png"; + : "/img/default.png"; const talkingClass = talking ? "border-green-500" : "border-zinc-800"; const mutedClass = selfMuted ? "text-zinc-400" : ""; @@ -17,7 +17,17 @@ export const User = ({ item }: { item: OverlayedUser }) => {
- avatar + { + // @ts-ignore + e.target.onerror = null; + // @ts-ignore + e.target.src = "/img/default.png"; + }} + src={avatarUrl} + alt="avatar" + className="rounded-full" + />
{ + const navigate = useNavigate(); return ( -
+ className="bg-zinc-800 p-4 pt-4 pb-4" + >

Settings