fix: fix word filter style on small screens (#2002)
This commit is contained in:
parent
98815714ba
commit
40cb793e81
|
@ -110,6 +110,13 @@
|
||||||
"context"
|
"context"
|
||||||
"irreversible"
|
"irreversible"
|
||||||
"whole";
|
"whole";
|
||||||
|
grid-column-gap: 5px;
|
||||||
|
grid-row-gap: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 320px) {
|
||||||
|
.word-filter-dialog {
|
||||||
|
grid-row-gap: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{#each formattedFilters as filter (filter.id)}
|
{#each formattedFilters as filter (filter.id)}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{filter.phrase}</td>
|
<td class="word-filters-break">{filter.phrase}</td>
|
||||||
<td>{filter.formattedContexts}</td>
|
<td class="word-filters-break">{filter.formattedContexts}</td>
|
||||||
<td>
|
<td>
|
||||||
<IconButton label="{intl.edit}" href="#fa-pencil" on:click="edit(filter)" clickListener={true} />
|
<IconButton label="{intl.edit}" href="#fa-pencil" on:click="edit(filter)" clickListener={true} />
|
||||||
</td>
|
</td>
|
||||||
|
@ -37,6 +37,18 @@
|
||||||
p.word-filters-p, .word-filters-table {
|
p.word-filters-p, .word-filters-table {
|
||||||
margin: 0 0 10px 0;
|
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>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import GenericInstanceSettingsStyle from './GenericInstanceSettingsStyle.html'
|
import GenericInstanceSettingsStyle from './GenericInstanceSettingsStyle.html'
|
||||||
|
|
Loading…
Reference in a new issue