Logo
Explore Help
Sign In
darkhelm/notifications-admin
1
0
Fork 0
You've already forked notifications-admin
mirror of https://github.com/GSA/notifications-admin.git synced 2026-08-15 15:28:50 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
4effd7df06c409c8fc5dd12ebeb482773bf81302
notifications-admin/app/templates/components/branding-preview.html

8 lines
322 B
HTML
Raw Normal View History

Add macro for letter branding previews This extends the same thing we’ve done for email branding previews in the previous commit to cover letter branding as well.
2022-03-01 12:25:23 +00:00
{% macro branding_preview(branding_style, endpoint) %}
Prevent scrolling of branding previews In user research we quite often saw people accidentally scroll the branding preview `<iframe>` when trying to scroll the page. This is suboptimal because they: - were confused why the page wasn’t scrolling - lost visibility of the branding they were trying to preview because it scrolled outside the bounds of the `<iframe>`
2022-03-01 12:26:05 +00:00
<iframe src="{{ url_for(endpoint, branding_style=branding_style) }}" class="branding-preview" scrolling="no"></iframe>
Add macro for letter branding previews This extends the same thing we’ve done for email branding previews in the previous commit to cover letter branding as well.
2022-03-01 12:25:23 +00:00
{% endmacro %}
{% macro email_branding_preview(branding_style) %}
{{ branding_preview(branding_style, 'main.email_template') }}
{% endmacro %}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 1109ms Template: 53ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API