From 5049cbdbd208fe01e466349fb2b4d3c9292071b2 Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Tue, 24 Apr 2018 14:06:55 -0500 Subject: [PATCH] Add table-header-group display class --- app/assets/stylesheets/bootstrap_migration.scss | 10 ++++++++++ app/views/admin/abuse_reports/index.html.haml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/bootstrap_migration.scss b/app/assets/stylesheets/bootstrap_migration.scss index 26881908526..0e23ecd156a 100644 --- a/app/assets/stylesheets/bootstrap_migration.scss +++ b/app/assets/stylesheets/bootstrap_migration.scss @@ -52,6 +52,16 @@ table { pointer-events: none; } + +@each $breakpoint in map-keys($grid-breakpoints) { + @include media-breakpoint-up($breakpoint) { + $infix: breakpoint-infix($breakpoint, $grid-breakpoints); + + .d#{$infix}-table-header-group { display: table-header-group !important; } + } +} + + // Polyfill deprecated selectors .hidden { diff --git a/app/views/admin/abuse_reports/index.html.haml b/app/views/admin/abuse_reports/index.html.haml index aeda361a9cb..cc29657a439 100644 --- a/app/views/admin/abuse_reports/index.html.haml +++ b/app/views/admin/abuse_reports/index.html.haml @@ -5,7 +5,7 @@ - if @abuse_reports.present? .table-holder %table.table.responsive-table - %thead.d-none.d-sm-none.d-md-block + %thead.d-none.d-sm-none.d-md-table-header-group %tr %th User %th Reported by