Skip to content

Commit 4524fdb

Browse files
committed
events: fix tables in mobile view (same as metrics - 12/23/24)
1 parent c4f2e62 commit 4524fdb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/views/Media/Events.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,25 @@ export default {
233233
border-right-width: 1px;
234234
border-right-color: $theme-color-primary-darker
235235
}
236+
237+
// For the mobile screen sizes, this overrides the settings in cveTableStacked,
238+
// which was causing tables to be split into multiple tables and the year
239+
// headings to be hidden. This keeps the tables intact. Mobile users will
240+
// be able to horizontally scroll as normal.
241+
242+
@media only screen and (max-width: $desktop) {
243+
244+
td {
245+
display: table-cell;
246+
}
247+
248+
thead th {
249+
display: table-cell;
250+
}
251+
252+
tr {
253+
display: table-row !important;
254+
}
255+
}
256+
236257
</style>

0 commit comments

Comments
 (0)