Scrollable tables in settings pages (#4857)

* Scrollable tables in settings pages

* Add space before curly brace
th-downstream
Lynx Kotoura 7 years ago committed by Eugen Rochko
parent f79eba1650
commit c268118e5b

@ -190,11 +190,15 @@
.filters {
display: flex;
margin-bottom: 20px;
flex-wrap: wrap;
.filter-subset {
flex: 0 0 auto;
margin-right: 40px;
margin: 0 40px 10px 0;
&:last-child {
margin-bottom: 20px;
}
ul {
margin-top: 5px;

@ -3,7 +3,6 @@
max-width: 100%;
border-spacing: 0;
border-collapse: collapse;
margin-bottom: 20px;
th,
td {
@ -43,17 +42,15 @@
font-weight: 500;
}
&.inline-table {
td,
th {
padding: 8px 2px;
}
& > tbody > tr:nth-child(odd) > td,
& > tbody > tr:nth-child(odd) > th {
&.inline-table > tbody > tr:nth-child(odd) > td,
&.inline-table > tbody > tr:nth-child(odd) > th {
background: transparent;
}
}
.table-wrapper {
overflow: auto;
margin-bottom: 20px;
}
samp {

@ -1,3 +1,4 @@
.table-wrapper
%table.table
%tbody
%tr

@ -50,6 +50,7 @@
%button= t('admin.accounts.search')
= link_to t('admin.accounts.reset'), admin_accounts_path, class: 'button negative'
.table-wrapper
%table.table
%thead
%tr

@ -1,6 +1,7 @@
- content_for :page_title do
= @account.acct
.table-wrapper
%table.table
%tbody
%tr
@ -81,7 +82,6 @@
%th= t('.targeted_reports')
%td= link_to pluralize(@account.targeted_reports.count, t('.report')), admin_reports_path(target_account_id: @account.id)
%div{ style: 'float: right' }
- if @account.local?
= link_to t('admin.accounts.reset_password'), admin_account_reset_path(@account.id), method: :create, class: 'button'

@ -1,6 +1,7 @@
- content_for :page_title do
= t('admin.domain_blocks.title')
.table-wrapper
%table.table
%thead
%tr

@ -1,6 +1,7 @@
- content_for :page_title do
= t('admin.instances.title')
.table-wrapper
%table.table
%thead
%tr

@ -10,6 +10,7 @@
= form_tag do
.table-wrapper
%table.table
%thead
%tr

@ -1,6 +1,7 @@
- content_for :page_title do
= t('admin.subscriptions.title')
.table-wrapper
%table.table
%thead
%tr

@ -1,6 +1,7 @@
%h6= t 'sessions.title'
%p.muted-hint= t 'sessions.explanation'
.table-wrapper
%table.table.inline-table
%thead
%tr

@ -1,6 +1,7 @@
- content_for :page_title do
= t('doorkeeper.authorized_applications.index.title')
.table-wrapper
%table.table
%thead
%tr

@ -1,6 +1,7 @@
- content_for :page_title do
= t('doorkeeper.applications.index.title')
.table-wrapper
%table.table
%thead
%tr

@ -3,6 +3,7 @@
%p.hint= t('applications.warning')
.table-wrapper
%table.table
%tbody
%tr

@ -1,6 +1,7 @@
- content_for :page_title do
= t('settings.export')
.table-wrapper
%table.table
%tbody
%tr

@ -12,6 +12,7 @@
%p= t('followers.explanation_html')
%p= t('followers.true_privacy_html')
.table-wrapper
%table.table
%thead
%tr

Loading…
Cancel
Save