mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Simplify the findResultsCount
span toggling, by using the same approach as with the findMsg
span
This commit is contained in:
parent
d0354d20b3
commit
6fe4b3a5ae
3 changed files with 3 additions and 2 deletions
|
@ -163,7 +163,6 @@ class PDFFindBar {
|
|||
}
|
||||
matchCountMsg.then(msg => {
|
||||
this.findResultsCount.textContent = msg;
|
||||
this.findResultsCount.classList.toggle("hidden", !total);
|
||||
// Since `updateResultsCount` may be called from `PDFFindController`,
|
||||
// ensure that the width of the findbar is always updated correctly.
|
||||
this._adjustWidth();
|
||||
|
|
|
@ -691,6 +691,8 @@ html[dir="ltr"] .doorHangerRight:before {
|
|||
#findMsg {
|
||||
color: rgba(251, 0, 0, 1);
|
||||
}
|
||||
|
||||
#findResultsCount:empty,
|
||||
#findMsg:empty {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||
</div>
|
||||
|
||||
<div class="findbarMessageContainer">
|
||||
<span id="findResultsCount" class="toolbarLabel hidden"></span>
|
||||
<span id="findResultsCount" class="toolbarLabel"></span>
|
||||
</div>
|
||||
<div class="findbarMessageContainer">
|
||||
<span id="findMsg" class="toolbarLabel"></span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue