Repository navigation
Fix: Line breaks rendering in dropdown using html-translate - #6820
Conversation
WalkthroughThe change updates two Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 0
♻️ Duplicate comments (1)
BTCPayServer/Views/UIStores/CheckoutAppearance.cshtml (1)
123-127: Apply the same clean-up to the “In-store” note.-<span class="note" text-translate="true" html-translate="true"> +<span class="note" html-translate="true">
🧹 Nitpick comments (1)
BTCPayServer/Views/UIStores/CheckoutAppearance.cshtml (1)
118-122: Remove redundanttext-translate– keep onlyhtml-translate.
html-translate="true"already registers the string for localisation and signals that embedded HTML is safe to render. Having both attributes can:• generate two resource keys, or
• cause the helper to revert to the plain-text pathway, defeating the purpose of this fix.Also trim the double space for consistency.
-<span class="note" text-translate="true" html-translate="true"> +<span class="note" html-translate="true">
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
BTCPayServer/Views/UIStores/CheckoutAppearance.cshtml(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: NicolasDorier
PR: btcpayserver/btcpayserver#0
File: :0-0
Timestamp: 2025-04-22T06:54:36.253Z
Learning: Do not edit or modify PR descriptions in the btcpayserver repository as requested by NicolasDorier.
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build_and_test
dstrukt
left a comment
There was a problem hiding this comment.
Can't comment on code, but visually, looks good!
Thanks for picking this up and working with us on good coding standards!
/cc @NicolasDorier
🛠️ What this PR does
Settings → Checkout Appearance → Select a preset.html-translate="true"to translation blocks which makes wrappers instead of showing<br />in the page.🧾 Original Files & Lines
BTCPayServer/Views/UIStores/CheckoutAppearance.cshtml🧾 Updated Files & Lines
BTCPayServer/Views/UIStores/CheckoutAppearance.cshtml📸 Visual Preview
Before:

After:

✅ Why this approach?
html-translate="true").<br />.🙏 Notes
I'm still learning open-source contribution best practices.
This is a clean and focused PR addressing only the issue mentioned. Thank you again for your guidance — I look forward to your feedback and review!