mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Fix pronunciation block toggle not working in Safari
Also fix the masking when it's 1 or 2 liner
This commit is contained in:
parent
72eb9a5789
commit
c80c3732eb
2 changed files with 5 additions and 2 deletions
|
@ -94,11 +94,11 @@
|
|||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
mask-image: linear-gradient(to top, transparent, black 16px);
|
||||
mask-image: linear-gradient(to bottom, black 3em, transparent);
|
||||
}
|
||||
.status-translation-block
|
||||
.translated-block
|
||||
output.translated-pronunciation-content:is(:active, :focus) {
|
||||
output.translated-pronunciation-content.expand {
|
||||
display: block;
|
||||
-webkit-line-clamp: unset;
|
||||
-webkit-box-orient: unset;
|
||||
|
|
|
@ -146,6 +146,9 @@ function TranslationBlock({
|
|||
<output
|
||||
class="translated-pronunciation-content"
|
||||
tabIndex={-1}
|
||||
onClick={(e) => {
|
||||
e.target.classList.toggle('expand');
|
||||
}}
|
||||
>
|
||||
{pronunciationContent}
|
||||
</output>
|
||||
|
|
Loading…
Reference in a new issue