Use ruby tag for frequency disambiguation (#1211)

This commit is contained in:
toasted-nutbread 2021-01-09 16:07:47 -05:00 committed by GitHub
parent 5b58a9aeef
commit 67d21d4988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -1068,6 +1068,10 @@ button.action-button[data-icon=source-term]::before {
.frequency-disambiguation::after {
content: ' only) ';
}
.frequency-disambiguation-reading {
display: inline;
font-size: 1em;
}
.entry[data-unique-expression-count='1'] .frequency-item[data-has-reading=false] .frequency-disambiguation,
.entry[data-unique-reading-count='1'][data-unique-expression-count='1'] .frequency-disambiguation,
.frequency-item[data-reading-is-same=true] .frequency-disambiguation-separator,

View File

@ -57,11 +57,11 @@
<!-- Frequency templates -->
<template id="frequency-group-item-template"><li class="frequency-group-item"><div class="frequency-tag-list tag-list"></div><ul class="frequency-list"></ul></li></template>
<template id="term-frequency-item-template" data-remove-whitespace-text="true"><li class="frequency-item" data-frequency-type="term">
<span class="frequency-disambiguation">
<ruby class="frequency-disambiguation">
<span class="frequency-disambiguation-expression"></span>
<span class="frequency-disambiguation-separator"></span>
<span class="frequency-disambiguation-reading"></span>
</span>
<rt class="frequency-disambiguation-reading"></rt>
</ruby>
<span class="frequency-separator"></span>
<span class="frequency-value"></span>
</li></template>