chanfasf commited on
Commit
e04fdc1
·
1 Parent(s): ad23013

Style: improve video title alignment with consistent layout

Browse files
frontend/src/App.vue CHANGED
@@ -439,20 +439,30 @@ body {
439
  .video-info {
440
  display: flex;
441
  align-items: center;
442
- gap: 10px;
443
  min-width: 0;
 
444
  }
445
 
446
  .video-thumb {
447
- width: 72px;
448
- height: 42px;
449
- border-radius: 6px;
450
  object-fit: cover;
451
  background: #f1f5f9;
452
  flex-shrink: 0;
453
  border: 1px solid #e2e8f0;
454
  }
455
 
 
 
 
 
 
 
 
 
 
456
  .video-title {
457
  font-weight: 600;
458
  color: #1e293b;
 
439
  .video-info {
440
  display: flex;
441
  align-items: center;
442
+ gap: 12px;
443
  min-width: 0;
444
+ min-height: 56px;
445
  }
446
 
447
  .video-thumb {
448
+ width: 80px;
449
+ height: 48px;
450
+ border-radius: 8px;
451
  object-fit: cover;
452
  background: #f1f5f9;
453
  flex-shrink: 0;
454
  border: 1px solid #e2e8f0;
455
  }
456
 
457
+ .video-info-content {
458
+ flex: 1;
459
+ min-width: 0;
460
+ display: flex;
461
+ flex-direction: column;
462
+ justify-content: center;
463
+ gap: 2px;
464
+ }
465
+
466
  .video-title {
467
  font-weight: 600;
468
  color: #1e293b;
frontend/src/views/Revenue.vue CHANGED
@@ -90,7 +90,7 @@
90
  <td>
91
  <div class="video-info">
92
  <img :src="v.thumbnail_url" class="video-thumb" @error="handleImgError" />
93
- <div>
94
  <a :href="v.video_url" target="_blank" class="video-title" :title="v.title">{{ v.title }}</a>
95
  <div class="video-channel">{{ v.channel_title }}</div>
96
  </div>
 
90
  <td>
91
  <div class="video-info">
92
  <img :src="v.thumbnail_url" class="video-thumb" @error="handleImgError" />
93
+ <div class="video-info-content">
94
  <a :href="v.video_url" target="_blank" class="video-title" :title="v.title">{{ v.title }}</a>
95
  <div class="video-channel">{{ v.channel_title }}</div>
96
  </div>
frontend/src/views/TopViewed.vue CHANGED
@@ -47,7 +47,7 @@
47
  <td>
48
  <div class="video-info">
49
  <img :src="v.thumbnail_url" class="video-thumb" @error="handleImgError" />
50
- <div>
51
  <a :href="v.video_url" target="_blank" class="video-title" :title="v.title">{{ v.title }}</a>
52
  <div class="video-channel">{{ v.channel_title }}</div>
53
  </div>
 
47
  <td>
48
  <div class="video-info">
49
  <img :src="v.thumbnail_url" class="video-thumb" @error="handleImgError" />
50
+ <div class="video-info-content">
51
  <a :href="v.video_url" target="_blank" class="video-title" :title="v.title">{{ v.title }}</a>
52
  <div class="video-channel">{{ v.channel_title }}</div>
53
  </div>
frontend/src/views/Trending.vue CHANGED
@@ -48,7 +48,7 @@
48
  <td>
49
  <div class="video-info">
50
  <img :src="v.thumbnail_url" class="video-thumb" @error="handleImgError" />
51
- <div>
52
  <a :href="v.video_url" target="_blank" class="video-title" :title="v.title">{{ v.title }}</a>
53
  <div class="video-channel">{{ v.channel_title }}</div>
54
  </div>
 
48
  <td>
49
  <div class="video-info">
50
  <img :src="v.thumbnail_url" class="video-thumb" @error="handleImgError" />
51
+ <div class="video-info-content">
52
  <a :href="v.video_url" target="_blank" class="video-title" :title="v.title">{{ v.title }}</a>
53
  <div class="video-channel">{{ v.channel_title }}</div>
54
  </div>
frontend/src/views/Viral.vue CHANGED
@@ -48,7 +48,7 @@
48
  <td>
49
  <div class="video-info">
50
  <img :src="v.thumbnail_url" class="video-thumb" @error="handleImgError" />
51
- <div>
52
  <a :href="v.video_url" target="_blank" class="video-title" :title="v.title">{{ v.title }}</a>
53
  <div class="video-channel">{{ v.channel_title }}</div>
54
  </div>
 
48
  <td>
49
  <div class="video-info">
50
  <img :src="v.thumbnail_url" class="video-thumb" @error="handleImgError" />
51
+ <div class="video-info-content">
52
  <a :href="v.video_url" target="_blank" class="video-title" :title="v.title">{{ v.title }}</a>
53
  <div class="video-channel">{{ v.channel_title }}</div>
54
  </div>