Fix secondary search dictionary options layout (#1654)

This commit is contained in:
toasted-nutbread 2021-05-08 15:18:41 -04:00 committed by GitHub
parent 289bdc1622
commit f935623f35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions

View File

@ -2224,6 +2224,15 @@ input[type=number].dictionary-priority {
}
/* Secondary search dictionary settings */
.secondary-search-dictionary-list {
margin-top: 0.5em;
}
.secondary-search-dictionary-item {
padding: 0.375em 0;
}
/* Generic layouts */
.margin-above {
margin-top: 0.85em;

View File

@ -2146,7 +2146,7 @@
These dictionaries will be used to search for definitions of the related terms when the grouping mode is
<em>Group related terms</em>.
</p>
<div id="secondary-search-dictionary-list" class="dictionary-list margin-above"></div>
<div id="secondary-search-dictionary-list" class="secondary-search-dictionary-list"></div>
</div>
<div class="modal-footer">
<button data-modal-action="hide">Close</button>
@ -2289,14 +2289,10 @@
<button class="popup-menu-item" data-menu-action="delete">Delete</button>
</div></div></div></template>
<template id="secondary-search-dictionary-template"><div class="settings-item dictionary-item"><div class="settings-item-inner">
<div class="settings-item-left">
<div class="settings-item-label dictionary-info">
<template id="secondary-search-dictionary-template"><div class="secondary-search-dictionary-item horizontal-flex">
<label class="toggle"><input type="checkbox" class="dictionary-allow-secondary-searches"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label>
<span class="dictionary-info-label"><strong class="dictionary-title"></strong> <span class="light dictionary-version"></span></span>
</div>
</div>
</div></div></template>
<span class="horizontal-flex-fill"><strong class="dictionary-title"></strong> <span class="light dictionary-version"></span></span>
</div></template>
<template id="collapsible-dictionary-item-template"><div class="collapsible-dictionary-item">
<div class="collapsible-dictionary-cell">