From 281c2d38ba27784c3c6cd0a65732982801494a6f Mon Sep 17 00:00:00 2001 From: Robin Lopez Date: Tue, 5 Nov 2024 14:25:01 +0100 Subject: [PATCH] #74 (style) - Fix avatar speaker detail page --- mobile/src/views/SpeakerDetailsPage.vue | 29 ++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/mobile/src/views/SpeakerDetailsPage.vue b/mobile/src/views/SpeakerDetailsPage.vue index bcb2f246..3ada841b 100644 --- a/mobile/src/views/SpeakerDetailsPage.vue +++ b/mobile/src/views/SpeakerDetailsPage.vue @@ -14,9 +14,10 @@
- - - +
+ +
+ {{speaker.fullName}}
@@ -26,9 +27,9 @@
- - - +
+ +
@@ -125,7 +126,7 @@ const {firestoreEventTalkStatsRef: talkStatsRefByTalkId} = useEventTalkStats(spa const isScrollingDown = ref(false); const handleScrollStart = () => {}; const handleScroll = (ev: CustomEvent) => { - isScrollingDown.value = ev.detail.deltaY > 0; + isScrollingDown.value = ev.detail.deltaY > 172; }; const handleScrollEnd = () => {}; @@ -157,9 +158,9 @@ const handleScrollEnd = () => {}; transition: opacity 240ms ease-in-out; &-avatar { - height: 54px; - width: 54px; + width: 44px; top: 50%; + border-radius: 44px; border: 2px solid var(--app-white); @media (prefers-color-scheme: dark) { @@ -218,14 +219,12 @@ const handleScrollEnd = () => {}; } } - .speakerAvatar { - height: 124px; - width: 124px; + .avatarContainer { margin-top: -64px; - border: 8px solid var(--app-white); - @media (prefers-color-scheme: dark) { - border: 8px solid var(--app-medium-contrast); + ion-avatar { + margin: 0; + border: 4px solid var(--ion-color-dark); } } }