diff --git a/components/profile-modal.html b/components/profile-modal.html index 3c3728e0..efe700ce 100644 --- a/components/profile-modal.html +++ b/components/profile-modal.html @@ -303,9 +303,8 @@
diff --git a/css/style.css b/css/style.css index de146c6e..3d23f26b 100644 --- a/css/style.css +++ b/css/style.css @@ -104,6 +104,34 @@ header img { padding: 1.5rem 0; } +/* Dedicated watch-history grids mirror the home feed layout */ +.watch-history-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); + gap: 2rem; + width: 100%; + padding: 1.5rem 0; +} + +/* Profile modal gets a tighter column and removes outer padding */ +.watch-history-grid.watch-history-grid--modal { + grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); + gap: 1.5rem; + padding: 0; +} + +@media (max-width: 640px) { + .watch-history-grid { + grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); + gap: 1.5rem; + } + + .watch-history-grid.watch-history-grid--modal { + grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); + gap: 1.25rem; + } +} + /* Video Cards */ .video-card { background-color: var(--color-card); diff --git a/views/history.html b/views/history.html index fa69bf07..795e5ae5 100644 --- a/views/history.html +++ b/views/history.html @@ -6,11 +6,7 @@
- +