fix: fix word filter style on small screens (#2002)

This commit is contained in:
Nolan Lawson 2021-03-15 22:25:40 -07:00 committed by GitHub
parent 98815714ba
commit 40cb793e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View File

@ -110,6 +110,13 @@
"context"
"irreversible"
"whole";
grid-column-gap: 5px;
grid-row-gap: 10px;
}
}
@media (max-width: 320px) {
.word-filter-dialog {
grid-row-gap: 5px;
}
}
</style>

View File

@ -12,8 +12,8 @@
<tbody>
{#each formattedFilters as filter (filter.id)}
<tr>
<td>{filter.phrase}</td>
<td>{filter.formattedContexts}</td>
<td class="word-filters-break">{filter.phrase}</td>
<td class="word-filters-break">{filter.formattedContexts}</td>
<td>
<IconButton label="{intl.edit}" href="#fa-pencil" on:click="edit(filter)" clickListener={true} />
</td>
@ -37,6 +37,18 @@
p.word-filters-p, .word-filters-table {
margin: 0 0 10px 0;
}
.word-filters-break {
word-break: break-word;
text-overflow: ellipsis;
}
@media (max-width: 767px) {
.word-filters-table {
table-layout: fixed;
}
}
</style>
<script>
import GenericInstanceSettingsStyle from './GenericInstanceSettingsStyle.html'