mirror of
https://github.com/amnezia-vpn/amneziawg-openwrt.git
synced 2026-10-13 21:34:37 +00:00
[GH-ISSUE #36] If the QR code and config do not fit into the window #22
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-openwrt#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ewgen198409 on GitHub (Mar 15, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-openwrt/issues/36
QR code display issue in peer configuration export
Problem
The QR code in the peer configuration export dialog has a fixed width of
320pxwith a rigid flex layout, which causes two issues:Fix
Three simple changes in
/www/luci-static/resources/protocol/amneziawg.js:1. Change layout direction from row to column so QR code appears above the config text:
2. Remove fixed QR code width, let it size automatically:
3. Make config text field full width:
Or apply with sed:
Result
QR code is displayed in full size above the config text, both are fully visible and readable.