Skip to content

Commit 351584e

Browse files
committed
Fix tag cloud spacing and increase file size limit
Layout Fixes: - Added margin-bottom to TagCloud component (--text-spacing-md) - Only show TagCloud when filter.length > 0 (conditional rendering) - Proper spacing between tag cloud and cards when tags are selected - Responsive spacing: 0.75rem on mobile, 1rem on desktop File Size Limit Fix: - Increased maxFileSize to 150 MB (from default 100 MB) - Allows downloading large images from Wikidata (e.g., 103.17 MB file) - Prevents 'File size exceeds maximum allowed size' errors during development
1 parent 9b4588d commit 351584e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

gridsome.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module.exports = {
6161
baseDir: "/content/images/",
6262
cacheEnabled: true,
6363
ttl: 7 * 24 * 60 * 60 * 1000, // 7 days (longer cache to reduce API calls)
64+
maxFileSize: 150 * 1024 * 1024, // 150 MB (increased from default 100 MB to handle large images)
6465
verbose: true,
6566
},
6667
},

src/components/TagCloud.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default {
4343
flex-wrap: wrap;
4444
gap: var(--tag-gap);
4545
margin: 0;
46+
margin-bottom: var(--text-spacing-md); // Add spacing below tag cloud
4647
padding: 0;
4748
width: 100%;
4849
position: relative;

src/pages/Index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<Layout :show-back-link="false" :toggle-view="showToggleView()">
33
<div class="index-content">
4-
<TagCloud :event="removeTag()" :tags="filter" />
4+
<TagCloud v-if="filter.length > 0" :event="removeTag()" :tags="filter" />
55
<div v-if="computeCards.length === 0" class="empty-state">
66
<div class="empty-state__content">
77
<h2 class="empty-state__title">

0 commit comments

Comments
 (0)