stop changelog from bumping the page when loading

This commit is contained in:
2023-07-26 00:18:57 +02:00
parent 13cb2c5a55
commit 17a091bec8
@@ -7,12 +7,14 @@
<Nail/> <Nail/>
</div> </div>
<h1>Changelog</h1> <h1>Changelog</h1>
<div class="changelog-list">
<div class="changelog-entry" v-for="release in releases"> <div class="changelog-entry" v-for="release in releases">
<hr> <hr>
<h2><span>Version {{ release.name }}</span><small class="date">{{ timeFormat.format(release.createdAt) }}</small></h2> <h2><span>Version {{ release.name }}</span><small class="date">{{ timeFormat.format(release.createdAt) }}</small></h2>
<pre>{{ release.body }}</pre> <pre>{{ release.body }}</pre>
</div> </div>
</div> </div>
</div>
</template> </template>
<script lang="ts"> <script lang="ts">
@@ -63,11 +65,14 @@ export default defineComponent({
padding-block: 3rem; padding-block: 3rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: flex-start;
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
max-width: 45rem; max-width: 45rem;
min-height: 30rem;
max-height: 30rem;
width: 100%; width: 100%;
overflow-y: auto;
h1 { h1 {
font-size: 3rem; font-size: 3rem;
@@ -76,6 +81,16 @@ export default defineComponent({
text-align: center; text-align: center;
} }
.changelog-list {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
gap: 1rem;
width: 100%;
overflow-y: auto;
}
.changelog-entry { .changelog-entry {
width: 100%; width: 100%;