Skip to content

Commit 2340af0

Browse files
authored
Fix blog banner layout (#2300)
* Fix blog banner layout * Fix banner stretching with no content
1 parent c501e0d commit 2340af0

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

src/renderer/App.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
}
1616

1717
.banner {
18-
width: 85%;
18+
margin: 16px auto 0 auto;
19+
width: 90%;
1920
}
2021

2122
.flexBox {
22-
margin-top: 60px;
23-
margin-bottom: -75px;
23+
margin: 0;
24+
flex: 1 1 0%;
25+
flex-direction: column;
2426
}
2527

2628
#changeLogText {

src/renderer/App.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
>
1010
<top-nav ref="topNav" />
1111
<side-nav ref="sideNav" />
12-
<ft-flex-box
13-
v-if="showUpdatesBanner || showBlogBanner"
14-
class="flexBox routerView"
15-
>
12+
13+
<ft-flex-box class="flexBox">
1614
<ft-notification-banner
1715
v-if="showUpdatesBanner"
1816
class="banner"
@@ -25,19 +23,21 @@
2523
:message="blogBannerMessage"
2624
@click="handleNewBlogBannerClick"
2725
/>
26+
27+
<transition
28+
v-if="dataReady"
29+
mode="out-in"
30+
name="fade"
31+
>
32+
<!-- <keep-alive> -->
33+
<RouterView
34+
ref="router"
35+
class="routerView"
36+
/>
37+
<!-- </keep-alive> -->
38+
</transition>
2839
</ft-flex-box>
29-
<transition
30-
v-if="dataReady"
31-
mode="out-in"
32-
name="fade"
33-
>
34-
<!-- <keep-alive> -->
35-
<RouterView
36-
ref="router"
37-
class="routerView"
38-
/>
39-
<!-- </keep-alive> -->
40-
</transition>
40+
4141
<ft-prompt
4242
v-if="showReleaseNotes"
4343
@click="showReleaseNotes = !showReleaseNotes"

0 commit comments

Comments
 (0)