Browse Source

refactor: Min 5 and max 15 christmas lights

Owen Diffey 3 years ago
parent
commit
f399ad94c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/src/components/layout/MainHeader.vue

+ 1 - 1
frontend/src/components/layout/MainHeader.vue

@@ -69,7 +69,7 @@
 
 		<christmas-lights
 			v-if="siteSettings.christmas"
-			:lights="Math.min(Math.floor(windowWidth / 175), 15)"
+			:lights="Math.min(Math.max(Math.floor(windowWidth / 175), 5), 15)"
 		/>
 	</nav>
 </template>