diff --git a/templates/_icons.html b/templates/_icons.html new file mode 100644 index 0000000..06c5314 --- /dev/null +++ b/templates/_icons.html @@ -0,0 +1,8 @@ +{# + Shared stroke-style SVG icon set (Feather-style, 24x24 viewBox, + currentColor stroke) so every page uses the same hand-picked icons + instead of OS-rendered emoji, which render inconsistently across + platforms and clash with the app's vector logo. Import with + {% import '_icons.html' as icons %} and call icons.icon('name', size). +#} +{% macro icon(name, size=18) %}{% endmacro %} diff --git a/templates/course_dashboard.html b/templates/course_dashboard.html index 3b82a10..25add05 100644 --- a/templates/course_dashboard.html +++ b/templates/course_dashboard.html @@ -1,3 +1,4 @@ +{% import '_icons.html' as icons %}
@@ -423,9 +424,14 @@ align-items: center; gap: 8px; } - .card-icon { + .icon { + display: inline-block; + vertical-align: -3px; flex-shrink: 0; - color: var(--text-primary); + } + .btn .icon, .tab-icon .icon { + vertical-align: -2px; + margin-right: 3px; } .card-body { @@ -1014,13 +1020,13 @@ {% if stats.total_lessons %}