Преглед изворни кода

fix: show View Full button on all content items

Previously the View Full button only appeared when content length > 300 characters.
Now it appears on all content items so users can always view the full content in a modal.
Fszontagh пре 8 месеци
родитељ
комит
056ef1c941
1 измењених фајлова са 4 додато и 6 уклоњено
  1. 4 6
      web/src/components/pages/ContentPage.ts

+ 4 - 6
web/src/components/pages/ContentPage.ts

@@ -604,12 +604,10 @@ export class ContentPage {
             </div>
           </div>
           <div class="ml-4 flex-shrink-0 space-y-2">
-            ${isLongContent ? `
-              <button class="view-full-btn btn btn-secondary btn-sm w-full" data-content-id="${contentId}">
-                <div class="w-4 h-4 mr-1">${getIcon('eye')}</div>
-                View Full
-              </button>
-            ` : ''}
+            <button class="view-full-btn btn btn-secondary btn-sm w-full" data-content-id="${contentId}">
+              <div class="w-4 h-4 mr-1">${getIcon('eye')}</div>
+              View Full
+            </button>
           </div>
         </div>
       </div>