Merge pull request #14530 from Snuffleupagus/findResultsCount-height
Avoid the `findResultsCount` span taking up (vertical) space when hidden (PR 13261 follow-up)
This commit is contained in:
commit
48139a0059
@ -163,7 +163,6 @@ class PDFFindBar {
|
|||||||
}
|
}
|
||||||
matchCountMsg.then(msg => {
|
matchCountMsg.then(msg => {
|
||||||
this.findResultsCount.textContent = msg;
|
this.findResultsCount.textContent = msg;
|
||||||
this.findResultsCount.classList.toggle("hidden", !total);
|
|
||||||
// Since `updateResultsCount` may be called from `PDFFindController`,
|
// Since `updateResultsCount` may be called from `PDFFindController`,
|
||||||
// ensure that the width of the findbar is always updated correctly.
|
// ensure that the width of the findbar is always updated correctly.
|
||||||
this._adjustWidth();
|
this._adjustWidth();
|
||||||
|
@ -502,7 +502,7 @@ html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
|
|||||||
.findbar.wrapContainers > div {
|
.findbar.wrapContainers > div {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.findbar.wrapContainers > div#findbarMessageContainer {
|
.findbar.wrapContainers > div.findbarMessageContainer {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
html[dir="ltr"] .findbar {
|
html[dir="ltr"] .findbar {
|
||||||
@ -691,6 +691,8 @@ html[dir="ltr"] .doorHangerRight:before {
|
|||||||
#findMsg {
|
#findMsg {
|
||||||
color: rgba(251, 0, 0, 1);
|
color: rgba(251, 0, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#findResultsCount:empty,
|
||||||
#findMsg:empty {
|
#findMsg:empty {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -141,11 +141,10 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||||||
<label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label">Whole Words</label>
|
<label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label">Whole Words</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="findbarOptionsThreeContainer">
|
<div class="findbarMessageContainer">
|
||||||
<span id="findResultsCount" class="toolbarLabel hidden"></span>
|
<span id="findResultsCount" class="toolbarLabel"></span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="findbarMessageContainer">
|
||||||
<div id="findbarMessageContainer">
|
|
||||||
<span id="findMsg" class="toolbarLabel"></span>
|
<span id="findMsg" class="toolbarLabel"></span>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- findbar -->
|
</div> <!-- findbar -->
|
||||||
|
Loading…
Reference in New Issue
Block a user