Skip to content

fix: update CD maps#957

Open
lenderom wants to merge 3 commits into
mainfrom
fix/747-multi-float-images
Open

fix: update CD maps#957
lenderom wants to merge 3 commits into
mainfrom
fix/747-multi-float-images

Conversation

@lenderom
Copy link
Copy Markdown
Member

@lenderom lenderom commented May 14, 2026

Fixes #747

Replace the CD validity map block in DE/EN/FR with inline HTML so both maps are shown side by side at equal width, each with its own full-view link.

@lenderom lenderom added content Improvements or additions to the content (countries, news, operators, general content) technical Technical issues, e.g. related to Hugo, HTML, CSS, deployment, etc. operator::cd labels May 14, 2026
@github-actions
Copy link
Copy Markdown

Hi there! 👋

Thank you for your contribution to the FIP Guide! 🚀
We appreciate your effort in making rail staff travel information more accessible. 🚄

Checklist before merging:

  • Added a description to the Pull Request
  • Checked the License of new pictures (non-commercial use without attribution)
  • Modified content in English
  • Modified content in German
  • Modified content in French

@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for fipguide ready!

Name Link
🔨 Latest commit a00df47
🔍 Latest deploy log https://app.netlify.com/projects/fipguide/deploys/6a144af252170c000894f56f
😎 Deploy Preview https://deploy-preview-957--fipguide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread content/operator/cd/index.de.md Outdated
Comment on lines +264 to +270
{{< float-image
src=`["cd-fip-map-overview-26.webp","cd-fip-map-detail-26.webp"]`
alt=`["FIP Gültigkeitskarte Überblick für Tschechien","FIP Gültigkeitskarte Detail für Tschechien"]`
caption=`["[Überblick FIP Gültigkeitskarte (Vollbild)](/en/operator/cd/cd-fip-map-overview-26.webp) für Tschechien (© Petr Duda)","[Detail FIP Gültigkeitskarte (Vollbild)](/en/operator/cd/cd-fip-map-detail-26.webp) für Tschechien (© Petr Duda)"]`
width="100%"
position="left">}}
{{< /float-image >}}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danke dir fürs Anpassen – ich persönlich bin mir unsicher, ob diese Syntax so verständlich ist. Werden wir das an anderer Stelle wiederverwenden? Die Frage ist auch, ob wir es nicht anders als mit Float lösen können, um zwei Bilder nebeneinander darzustellen. 🤔 Lass uns da gern nochmal zu quatschen :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jup gerne. War auch nur eine kurze Idee. WIr können da aber auch einfach Custom HTML injecten fürs Erste.

Copy link
Copy Markdown
Member

@MoritzWeber0 MoritzWeber0 May 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich mag den Syntax auch nicht wirklich, inbesondere durch die erhöhte Komplexität. Und so ganz verstehe ich den Sinn auch noch nicht. Eigentlich ist das float-image nämlich dafür gedacht, dass Text um das Image herum "schweben" kann. Das wird hier aber gar nicht genutzt, da das shortcode self-closing ist.

Wenn es lediglich darum geht, zwei Bilder parallel anzuzeigen, geht das auch per custom markdown attributes. Hierfür müssten wir einfach die Attributes im render-image hook abrufen, das kann ich gleich mal als separaten PR aufmachen.

Alternativlösungen, die meiner Meinung nach aber wesentlich schlechter geeignet sind:

  1. Einfach float-image nesten. Zu beachten ist, dass das innere float-image eine relative Positionsberechnung hat, also in diesem Fall hätte das parent 50% width und das innere 100%. Aber da es hier kein float-image ist, gefällt mir das nicht sonderlich gut.
  2. Wir führen ein column shortcode ein, das die width des entsprechenden containers beschränkt.
  3. Custom HTML wie gerade, dort funktioniert das jedoch image processing nicht
  4. Ein flex shortcode, there ein wrapper als flexbox anbietet.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mit der angepassten Version im HTML können wir es dennoch mergen, solange wir es als issue festhalten.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die Lösung per markdown attributes funktioniert leider doch nicht. Ich habe mal den column shortcode implementiert, da er sicher auch noch für andere Fälle hilfreich sein kann, wenn wir mehrere columns benötigen: #970

Aber können es sonst auch nochmal in die nächste Sitzung mitnehmen.

Comment thread layouts/partials/parse-list-param.html Outdated
@lenderom lenderom requested a review from therobrob May 25, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content Improvements or additions to the content (countries, news, operators, general content) operator::cd technical Technical issues, e.g. related to Hugo, HTML, CSS, deployment, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Czechia maps

3 participants