Jelajahi Sumber

Only show post scrubber and extra padding if there are more than one posts

sbkwgh 7 tahun lalu
induk
melakukan
9b3fb8cc4b

+ 1 - 1
frontend/src/components/PostScrubber.vue

@@ -1,5 +1,5 @@
 <template>
-	<div class='post_scrubber'>
+	<div class='post_scrubber' v-if='posts - 1'>
 		<div class='post_scrubber__label post_scrubber__label--first' @click='$emit("input", 0)'>First post</div>
 		<div class='post_scrubber__line' ref='line' @click='lineClick'></div>
 		<div

+ 1 - 1
frontend/src/components/routes/Thread.vue

@@ -1,5 +1,5 @@
 <template>
-	<div class='route_container' style='padding-bottom: 17.5rem;'>
+	<div class='route_container' :style='posts.length ? "padding-bottom: 17.5rem;" : null'>
 		<confirm-modal v-model='showConfirmModal' @confirm='deleteThread' text='Delete' color='red'>
 			Are you sure you want to delete this thread?
 			<br>This <b>cannot</b> be undone