Skip to content

Commit

Permalink
fix: header height when warning message is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyl-ivanchuk committed Dec 16, 2023
1 parent 6249b3d commit 48cbf60
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/components/IssuesBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@apply flex text-white rounded-2xl border border-amber-400/50 bg-amber-400/10 mb-6 py-3 px-4;
svg {
@apply mr-2;
@apply mr-2 shrink-0;
}
a {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/NetworkDeprecated.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const newNetworkUrl = computed(() => {
@apply flex text-white rounded-2xl border border-amber-400/50 bg-amber-400/10 mb-6 py-3 px-4;
svg {
@apply mr-2;
@apply mr-2 shrink-0;
}
a {
Expand Down
22 changes: 21 additions & 1 deletion packages/app/src/components/header/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@
</div>
</div>
</div>
<div v-if="hasContent" class="hero-banner-container" :class="{ 'home-banner': route.path === '/' }">
<div
v-if="hasContent"
class="hero-banner-container"
:class="[`${currentNetwork.name}`, { 'home-banner': route.path === '/' }]"
>
<hero-arrows class="hero-image" />
</div>
<transition
Expand Down Expand Up @@ -301,12 +305,28 @@ const hasContent = computed(() => {
.hero-banner-container {
@apply absolute left-0 top-full flex h-64 w-full items-end justify-end overflow-hidden bg-primary-900;
&.mainnet {
@apply h-[27rem] md:h-[23rem] lg:h-[20rem];
}
&.goerli {
@apply h-[25rem] md:h-[23rem] lg:h-[19rem];
}
.hero-image {
@apply h-5/6 w-auto;
}
}
.home-banner {
@apply h-80;
&.mainnet {
@apply h-[32rem] md:h-[28rem] lg:h-[25rem];
}
&.goerli {
@apply h-[30rem] md:h-[27rem] lg:h-[24rem];
}
}
}
.header-mobile-popover {
Expand Down

0 comments on commit 48cbf60

Please sign in to comment.