💄 (notes) fix overflow-x

This commit is contained in:
2021-03-14 01:18:54 +01:00
parent 0ce36a4b99
commit 8c94f5932d
4 changed files with 61 additions and 16 deletions

View File

@@ -1,11 +1,9 @@
<template>
<div id="app">
<!-- <nav>
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</nav> -->
<router-view />
</div>
<router-view class="app" />
</template>
<script lang="ts">

View File

@@ -36,6 +36,8 @@ export default defineComponent({
text-align: left;
border-top: 1px solid rgba(18, 19, 58, 0.2);
padding: 0 1rem;
overflow-y: auto;
height: 100vh;
}
@media screen and (min-width: 769px) {

View File

@@ -1,12 +1,35 @@
@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Brygada+1918&display=swap');
@import '~bulma/bulma.sass';
html {
overflow-y: auto;
}
html,
body {
text-align: center;
min-height: 100vh;
font-family: 'Brygada 1918', serif;
height: 100vh;
}
@media screen and (min-width: 769px) {
html,
body {
overflow-y: hidden;
}
}
.columns {
margin-left: 0;
margin-right: 0;
margin-top: 0;
&:last-child {
margin-bottom: 0;
}
}
#app {
height: 100vh;
display: flex;
}

View File

@@ -34,8 +34,8 @@
Not found.
</div>
</div>
<div class="columns">
<div class="column">
<div class="note-container">
<div class="readme">
<h1 class="title is-1">
<router-link
:to="{ name: 'Home', params: { user, repo } }"
@@ -47,13 +47,14 @@
<h2 class="subtitle is-2">{{ user }}</h2>
<p class="note-display" v-html="readme"></p>
</div>
<div
class="column"
<stacked-note
class="note"
v-for="stackedNote in stackedNotes"
:key="stackedNote"
>
<stacked-note :user="user" :repo="repo" :sha="stackedNote" />
</div>
:user="user"
:repo="repo"
:sha="stackedNote"
/>
</div>
</div>
</template>
@@ -86,3 +87,24 @@ export default defineComponent({
}
})
</script>
<style lang="scss" scoped>
.home {
display: flex;
flex-direction: column;
@media screen and (min-width: 769px) {
.readme,
.note {
min-width: 620px;
max-width: 720px;
}
}
.note-container {
flex: 1;
display: flex;
overflow-x: auto;
}
}
</style>