Skip to content

Commit

Permalink
fix: play buttons being shown as big black buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
BrayanDSO committed Dec 16, 2023
1 parent 7e6b7df commit a75f6bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AnkiDroid/src/main/java/com/ichi2/libanki/SoundKt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ fun avRefsToPlayIcons(text: String): String {
val side = groups[2]
val index = groups[3]
val playsound = "playsound:$side:$index"
"""<a class="replay-button soundLink" href=$playsound>
"""<a class="replay-button soundLink" href=$playsound><span>
<svg class="playImage" viewBox="0 0 64 64" version="1.1">
<circle cx="32" cy="32" r="29" />
<path d="M56.502,32.301l-37.502,20.101l0.329,-40.804l37.173,20.703Z" />
<circle cx="32" cy="32" r="29" fill="lightgrey"/>
<path d="M56.502,32.301l-37.502,20.101l0.329,-40.804l37.173,20.703Z" fill="black"/>Replay
</svg>
</a>"""
</span></a>"""
}
}

Expand Down

0 comments on commit a75f6bd

Please sign in to comment.