Lashtw commited on
Commit
990a72a
·
verified ·
1 Parent(s): cb40a55

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +11 -3
index.html CHANGED
@@ -468,10 +468,10 @@
468
  :style="{ backgroundColor: cell.bgColor }"
469
  >
470
  <div class="rotation-wrapper" :style="{ transform: `rotate(${cell.rotation}deg)` }">
471
- <span v-if="cell.type === 'text'" class="font-bold cell-text" :class="getFontSizeClass(cell.content)" :style="{ color: cell.color }">{{ cell.content }}</span>
472
 
473
  <!-- Render Icon: Emoji -->
474
- <span v-if="cell.type === 'icon'" class="text-3xl leading-none select-none">{{ icons[cell.content] }}</span>
475
 
476
  <!-- Image Renderer -->
477
  <img v-if="cell.type === 'image'" :src="cell.content" class="w-4/5 h-4/5 object-contain">
@@ -649,6 +649,13 @@
649
  return 'text-5xl md:text-7xl';
650
  };
651
 
 
 
 
 
 
 
 
652
  const getFontSizeForPdf = (content) => {
653
  const len = content ? content.length : 0;
654
  if (len >= 3) return "40";
@@ -1254,7 +1261,8 @@
1254
  openCustomGridModal,
1255
  confirmCustomGrid,
1256
  isCustomGridActive,
1257
- getFontSizeClass
 
1258
  };
1259
  }
1260
  }).mount('#app');
 
468
  :style="{ backgroundColor: cell.bgColor }"
469
  >
470
  <div class="rotation-wrapper" :style="{ transform: `rotate(${cell.rotation}deg)` }">
471
+ <span v-if="cell.type === 'text'" class="font-bold cell-text" :class="getOverviewFontSizeClass(cell.content)" :style="{ color: cell.color }">{{ cell.content }}</span>
472
 
473
  <!-- Render Icon: Emoji -->
474
+ <span v-if="cell.type === 'icon'" class="text-2xl leading-none select-none">{{ icons[cell.content] }}</span>
475
 
476
  <!-- Image Renderer -->
477
  <img v-if="cell.type === 'image'" :src="cell.content" class="w-4/5 h-4/5 object-contain">
 
649
  return 'text-5xl md:text-7xl';
650
  };
651
 
652
+ const getOverviewFontSizeClass = (content) => {
653
+ const len = content ? content.length : 0;
654
+ if (len >= 3) return 'text-xl';
655
+ if (len === 2) return 'text-2xl';
656
+ return 'text-3xl';
657
+ };
658
+
659
  const getFontSizeForPdf = (content) => {
660
  const len = content ? content.length : 0;
661
  if (len >= 3) return "40";
 
1261
  openCustomGridModal,
1262
  confirmCustomGrid,
1263
  isCustomGridActive,
1264
+ getFontSizeClass,
1265
+ getOverviewFontSizeClass
1266
  };
1267
  }
1268
  }).mount('#app');