Skip to content

Commit

Permalink
feat: prevent layout changes to logo on load
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin-LL committed Aug 22, 2024
1 parent 39e11a4 commit 35c7db8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/layout/TopBar/TopBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,16 @@ import FAQButton from "./FAQButton.vue";
display: flex;
justify-content: center;
align-items: center;
gap: 8px;

& > .animated-logo-container {
@media (max-width: 740px) {
gap: 4px;
}

& > .animated-logo-container,
& > .animated-logo-container > :global(*) {
width: 90px;
aspect-ratio: 1052 / 1304;

@media (max-width: 740px) {
width: 70px;
Expand Down
6 changes: 6 additions & 0 deletions src/components/shared/AnimatedLogo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ defineProps<{
"
/>
</template>

<style lang="scss" scoped>
object {
display: block;
}
</style>

0 comments on commit 35c7db8

Please sign in to comment.