From a3bc91c0bf6ff7a8e46fbe4dcc82c657488cce43 Mon Sep 17 00:00:00 2001 From: gamebrary Date: Mon, 9 Sep 2024 15:07:59 -0700 Subject: [PATCH] Use router link for routing from mini board --- src/components/AddRemoveGame.vue | 3 +- src/components/Board/StandardBoard.vue | 3 ++ src/components/CreateBoardSidebar.vue | 1 + src/components/EditBoardSidebar.vue | 1 + src/components/Game/GameInBoards.vue | 1 + src/components/WallpaperDetailsSidebar.vue | 1 + src/pages/BoardsPage.vue | 38 ++++++++++------------ src/pages/HomePage.vue | 1 - src/pages/PublicBoardsPage.vue | 1 - src/pages/PublicProfilePage.vue | 2 -- 10 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/AddRemoveGame.vue b/src/components/AddRemoveGame.vue index 4ebf2beb..fdaf218b 100755 --- a/src/components/AddRemoveGame.vue +++ b/src/components/AddRemoveGame.vue @@ -26,7 +26,6 @@ class="cursor-pointer" :board="board" thumbnail - @click.native="$router.push({ name: 'board', params: { id: board.id } })" />

{{ board.name }}

@@ -110,7 +109,7 @@ export default { try { await this.$store.dispatch('SAVE_GAME_BOARD', board); } catch (e) { - // + // } }, diff --git a/src/components/Board/StandardBoard.vue b/src/components/Board/StandardBoard.vue index d34500ff..c5a2ddf3 100644 --- a/src/components/Board/StandardBoard.vue +++ b/src/components/Board/StandardBoard.vue @@ -88,5 +88,8 @@ export default { .standard-board { display: flex; justify-content: center; + align-items: center; + overflow-y: auto; + flex-direction: column; } diff --git a/src/components/CreateBoardSidebar.vue b/src/components/CreateBoardSidebar.vue index 06bfbd19..55ba9608 100644 --- a/src/components/CreateBoardSidebar.vue +++ b/src/components/CreateBoardSidebar.vue @@ -39,6 +39,7 @@ diff --git a/src/components/WallpaperDetailsSidebar.vue b/src/components/WallpaperDetailsSidebar.vue index 0ab6efba..22a879f3 100644 --- a/src/components/WallpaperDetailsSidebar.vue +++ b/src/components/WallpaperDetailsSidebar.vue @@ -71,6 +71,7 @@ v-for="board in formattedBoards" :key="board.id" :board="board" + no-link @click.native="setAsBoardWallpaper(board)" /> diff --git a/src/pages/BoardsPage.vue b/src/pages/BoardsPage.vue index de8f9ff1..6c69d234 100644 --- a/src/pages/BoardsPage.vue +++ b/src/pages/BoardsPage.vue @@ -28,52 +28,51 @@ {{ $t('boards.create') }} - +
- + - \ No newline at end of file diff --git a/src/pages/HomePage.vue b/src/pages/HomePage.vue index 2083d834..a3729cca 100644 --- a/src/pages/HomePage.vue +++ b/src/pages/HomePage.vue @@ -17,7 +17,6 @@ v-for="board in recentlyUpdatedPublicBoards" :key="board.id" :board="board" - @click.native="$router.push({ name: 'board', params: { id: board.id } })" /> diff --git a/src/pages/PublicBoardsPage.vue b/src/pages/PublicBoardsPage.vue index 6e8e2c7e..90827aa1 100644 --- a/src/pages/PublicBoardsPage.vue +++ b/src/pages/PublicBoardsPage.vue @@ -7,7 +7,6 @@ v-for="board in sortedPublicBoards" :key="board.id" :board="board" - @click.native="$router.push({ name: 'board', params: { id: board.id } })" /> diff --git a/src/pages/PublicProfilePage.vue b/src/pages/PublicProfilePage.vue index c72bac89..9a9defac 100644 --- a/src/pages/PublicProfilePage.vue +++ b/src/pages/PublicProfilePage.vue @@ -66,8 +66,6 @@ v-for="board in userBoards" :key="board.id" :board="board" - @click.native="$router.push({ name: 'board', params: { id: board.id } })" - class="p-relative mb-3" />