From 24f5d79a55a0ba5940a4eafdb8207cbf5602bda4 Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Mon, 17 Feb 2025 13:51:59 -0500 Subject: [PATCH] More mobile styling fixes --- frontend/src/assets/main.css | 13 +- frontend/src/stores/creatorProfileStore.js | 6 +- frontend/src/views/profile/ProfilePage.vue | 384 +++++++++--------- .../src/views/profile/account/AliasDialog.vue | 2 +- .../src/views/profile/account/EmailDialog.vue | 2 +- .../views/profile/account/FullnameDialog.vue | 37 +- .../profile/creators/ChangeStripeIdDialog.vue | 2 +- .../profile/creators/ChangeTitleDialog.vue | 2 +- .../views/profile/creators/SocialsDialog.vue | 32 +- 9 files changed, 234 insertions(+), 246 deletions(-) diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index fcf59af..231bcd1 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -45,9 +45,13 @@ @apply hover:bg-hSecondary; } + div.dialog { + @apply place-self-center; + } + div.card { - @apply max-w-[1024px]; - @apply rounded-xl p-10 m-4; + @apply w-full max-w-[1024px]; + @apply rounded-xl p-4; @apply bg-hSurface text-hOnSurface; } @@ -63,4 +67,9 @@ div.card-actions { @apply flex flex-row gap-6 justify-end; } + + div.card-actions > * { + @apply w-fit; + @apply sm:min-w-40 min-w-0; + } } diff --git a/frontend/src/stores/creatorProfileStore.js b/frontend/src/stores/creatorProfileStore.js index 0adc6ec..74cbb89 100644 --- a/frontend/src/stores/creatorProfileStore.js +++ b/frontend/src/stores/creatorProfileStore.js @@ -17,10 +17,10 @@ export const useCreatorProfileStore = defineStore( async (newValue) => { if (newValue) { await fetchCreatorProfile(); - if (value.value === undefined) { - await router.push('/'); - } else { + if (value.value) { await router.push(`/@${value.value.name}`); + } else { + await router.push('/'); } } else { value.value = undefined; diff --git a/frontend/src/views/profile/ProfilePage.vue b/frontend/src/views/profile/ProfilePage.vue index 5a6278a..837efc7 100644 --- a/frontend/src/views/profile/ProfilePage.vue +++ b/frontend/src/views/profile/ProfilePage.vue @@ -1,198 +1,13 @@ - - - + +