Fix emoji ordering and prep font weight

- Emoji now shown above image on both back templates (was below)
- Emoji also shown on English→Hebrew card front (visual cue with meaning)
- hebrew-sm: add font-weight:normal (was inheriting bold from .hebrew parent)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Sochen 2026-03-05 06:09:55 +00:00
parent 64a1b18951
commit 0e4b041331

View file

@ -114,6 +114,7 @@ CARD_CSS = """
}
.hebrew-sm {
font-size: 24px;
font-weight: normal;
direction: rtl;
text-align: center;
color: #333;
@ -206,8 +207,8 @@ VOCAB_BACK_HEB = """
<div class="sec-label">מילים קשורות:</div>
<div class="root-info">{{SharedRoots}}</div>
{{/SharedRoots}}
{{#Image}}<div><img src="{{Image}}" style="max-height:150px;margin-top:8px;"></div>{{/Image}}
{{#Emoji}}<div class="emoji-img">{{Emoji}}</div>{{/Emoji}}
{{#Image}}<div><img src="{{Image}}" style="max-height:150px;margin-top:8px;"></div>{{/Image}}
{{#Example}}
<div class="example">{{Example}}</div>
{{/Example}}
@ -216,6 +217,7 @@ VOCAB_BACK_HEB = """
VOCAB_FRONT_ENG = """
<div class="meaning">{{Meaning}}</div>
{{#Emoji}}<div class="emoji-img">{{Emoji}}</div>{{/Emoji}}
"""
VOCAB_BACK_ENG = """
@ -226,8 +228,8 @@ VOCAB_BACK_ENG = """
{{#WordNoNikkud}}<div class="sec-label">ללא ניקוד: {{WordNoNikkud}}</div>{{/WordNoNikkud}}
{{#Root}}<div class="sec-label">שורש: {{Root}}</div>{{/Root}}
{{#PoS}}<div class="sec-label">חלק דיבור: {{PoS}}</div>{{/PoS}}
{{#Image}}<div><img src="{{Image}}" style="max-height:150px;margin-top:8px;"></div>{{/Image}}
{{#Emoji}}<div class="emoji-img">{{Emoji}}</div>{{/Emoji}}
{{#Image}}<div><img src="{{Image}}" style="max-height:150px;margin-top:8px;"></div>{{/Image}}
{{#Example}}
<div class="example">{{Example}}</div>
{{/Example}}