From f1d79a17f615a9cd34b15dd7b96764e4bb99486a Mon Sep 17 00:00:00 2001 From: guicamest Date: Tue, 15 Aug 2023 17:32:18 +0200 Subject: Allow setting additional cards to print (#275) * Add setting for additional cards to print * Render additional cards to print * Do not render additional cards if amount is less than 1 * Render additional cards when printing * Improve layout for portrait printing * Render eap and identity textfields conditionally so that they dont use space * Use all width in print-area * Change additionalCards setting to Input and react to changes * Allow hiding tip (legend) on card * Print only full cards * Move print-area - not-displayed - to the bottom of the page * Set default ssid back to empty, additional cards to 0 * Lower marginBottom of password field to 5 instead of 24 (default) * Use conditional rendering instead of class to hide password * Set marginBottom to QR code only on portrait mode * Set row-gap to 0 to allow up to 6 cards to fit in portrait mode in A4 * Move hideTip setting right after hiddenSSID --- src/translations.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/translations.js') diff --git a/src/translations.js b/src/translations.js index d2c0a89..d3dd9af 100644 --- a/src/translations.js +++ b/src/translations.js @@ -14,6 +14,8 @@ export const Translations = [ 'wifi.login': 'WiFi Login', 'wifi.name': 'Network name', 'wifi.name.hiddenSSID': 'Hidden SSID', + 'cards.additional': 'Additional cards to print', + 'cards.tip.hide': 'Hide tip (legend)', 'wifi.name.placeholder': 'WiFi Network name', 'wifi.password': 'Password', 'wifi.password.placeholder': 'Password', -- cgit v1.2.3