Hide scrollable table if its empty (#9811)

* Hide scrollable table if its empty

The scrollable table used to show a scrollbar even if empty, because `overflow-x: scroll;` is set explicitly. Completely
removing the element if it's empty fixes this
pull/9819/head
Benjamin Bädorf 3 years ago committed by GitHub
parent b969e87007
commit 56150d5582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.html

@ -1,8 +1,8 @@
<div class="op-scrollable-table">
<table
class="op-table"
*ngIf="settings.length > 0"
>
<div
class="op-scrollable-table"
*ngIf="settings.length > 0"
>
<table class="op-table">
<thead>
<tr>
<th class="op-table--cell op-table--cell_heading">

Loading…
Cancel
Save