|
46 | 46 |
|
47 | 47 | .video-wrapper {
|
48 | 48 | display: flex;
|
49 |
| - justify-content: center; /* Center the video containers horizontally */ |
50 |
| - align-items: center; /* Center the video containers vertically */ |
| 49 | + justify-content: center; |
| 50 | + align-items: stretch; /* Changed to stretch to ensure same height */ |
51 | 51 | position: relative;
|
52 |
| - width: 70%; /* Adjust the width to make the whole container smaller */ |
53 |
| - margin: auto; /* Center the container */ |
54 |
| - gap: 1%; /* Adjust the gap between videos */ |
55 |
| - border: none; /* Remove any border */ |
56 |
| - padding: 0; /* Remove any padding */ |
57 |
| - background: none; /* Remove any background */ |
| 52 | + width: 70%; |
| 53 | + margin: auto; |
| 54 | + gap: 1%; |
| 55 | + border: none; |
| 56 | + padding: 0; |
| 57 | + background: none; |
58 | 58 | }
|
59 | 59 |
|
60 | 60 | .video-container {
|
61 | 61 | position: relative;
|
62 |
| - width: 50%; /* Adjust the width of each video container */ |
63 |
| - overflow: hidden; /* Ensure the video doesn't overflow the container */ |
64 |
| - border-radius: 10px; /* Apply rounded corners */ |
| 62 | + width: 50%; |
| 63 | + aspect-ratio: 16/9; /* Force a consistent aspect ratio */ |
| 64 | + border-radius: 10px; |
| 65 | + display: flex; /* Added to help with centering */ |
| 66 | + align-items: center; /* Center content vertically */ |
65 | 67 | }
|
66 | 68 |
|
67 | 69 | .video-container video {
|
68 | 70 | width: 100%;
|
69 |
| - height: auto; |
70 |
| - border-radius: 10px; /* Ensure the video itself has rounded corners */ |
71 |
| - border: 1px solid #ccc; /* Add a border around the video */ |
| 71 | + height: 100%; /* Force full height */ |
| 72 | + object-fit: cover; /* Maintain aspect ratio while filling container */ |
| 73 | + border-radius: 10px; |
| 74 | + border: 1px solid #ccc; |
72 | 75 | }
|
73 | 76 |
|
74 | 77 | .carousel-caption {
|
|
86 | 89 | }
|
87 | 90 | .text-box {
|
88 | 91 | position: absolute;
|
89 |
| - top: 0; /* Adjust position above the video wrapper */ |
90 |
| - left: 0; /* Position it in the left upper corner */ |
91 |
| - /* background-color: black; */ |
| 92 | + top: 0; |
| 93 | + left: 0; |
92 | 94 | color: white;
|
93 | 95 | padding: 5px 10px;
|
94 | 96 | border-radius: 10px;
|
95 | 97 | box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
|
96 |
| - z-index: 1; /* Ensure it stays above other elements */ |
| 98 | + z-index: 1; |
97 | 99 | font-size: 12px;
|
98 | 100 |
|
99 | 101 | }
|
@@ -272,6 +274,9 @@ <h1 class="title is-1 publication-title">MJ-Video: Fine-Grained Benchmarking and
|
272 | 274 | <a href="https://arxiv.org/pdf/2502.01719" class="btn btn-outline-secondary">
|
273 | 275 | <i class="fa-solid fa-file-pdf"></i> Paper
|
274 | 276 | </a>
|
| 277 | + <a href="https://huggingface.co/datasets/MJ-Bench/MJ-BENCH-VIDEO" class="btn btn-outline-secondary"> |
| 278 | + <i class="fa-solid fa-download"></i> Dataset |
| 279 | + </a> |
275 | 280 | <a href="https://github.com/aiming-lab/MJ-Video" class="btn btn-outline-secondary">
|
276 | 281 | <i class="fa-brands fa-github"></i> Code
|
277 | 282 | </a>
|
|
0 commit comments