Compare commits

...

1 commit

Author SHA1 Message Date
Simon Bruder 97a736b37e
Use flexbox for page layout
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-01 19:08:46 +00:00

View file

@ -1,5 +1,5 @@
<template>
<div class="reader" v-shortkey="{left: ['arrowleft'], right: ['arrowright']}" @shortkey="navigation" :style="{ 'grid-template-columns': showSidebar ? 'auto 250px' : 'auto' }">
<div class="reader" v-shortkey="{left: ['arrowleft'], right: ['arrowright']}" @shortkey="navigation">
<div>
<img :style="{ width: pageWidth + '%' }" :src="info.pages[page]" @load="setScroll">
<!-- prefetching -->
@ -105,7 +105,7 @@ export default {
<style scoped>
.reader {
display: grid;
display: flex;
position: relative;
}
@ -126,6 +126,7 @@ img {
}
.sidebar {
flex: 0 0 250px;
background-color: #eee;
height: 100vh;
position: sticky;