Define the Weblate badge size to avoid reflows during page loading

This commit is contained in:
Hugo Locurcio
2020-04-25 21:31:00 +02:00
parent 6af982bc47
commit 263ff56251
2 changed files with 5 additions and 1 deletions

View File

@@ -121,9 +121,11 @@ You can help to translate the official Godot documentation on our `Hosted Weblat
:alt: Translation state
:align: center
:target: https://hosted.weblate.org/engage/godot-engine/?utm_source=widget
:width: 287
:height: 66
There also is the official
`Godot i18N repository <https://github.com/godotengine/godot-docs-l10n>`_
`Godot i18n repository <https://github.com/godotengine/godot-docs-l10n>`_
where you can see when the data was last synchronized.
License

View File

@@ -168,6 +168,8 @@ rst_epilog = """
.. |weblate_widget| image:: https://hosted.weblate.org/widgets/godot-engine/{image_locale}/godot-docs/287x66-white.png
:alt: Translation status
:target: https://hosted.weblate.org/engage/godot-engine{target_locale}/?utm_source=widget
:width: 287
:height: 66
""".format(
image_locale="-" if language == "en" else language,
target_locale="" if language == "en" else "/" + language,