Skip to content

Commit 4cd2ef2

Browse files
committed
feat(license): strings + styles for Manage Licenses Account section
Companion to the phoenix-pro Manage Licenses redesign: - Rename MANAGE_LICENSE_DIALOG_TITLE to "Manage Licenses" (was "Manage Device License"). LICENSE_KEY_ACTIVATE shortened to "Activate" since it now sits next to a key input rather than on its own row. - New strings for the Account section: LICENSE_ACCOUNT_HEADING, LICENSE_DEVICE_HEADING, LICENSE_SIGN_IN, LICENSE_PLAN_UNKNOWN, LICENSE_GET_PRO, LICENSE_MANAGE_ACCOUNT, LICENSE_KEY_PROMPT. - Override the base modal-body max-height (which was clipping the dialog at 400px and forcing scroll) up to viewport-relative. - New .license-account-row flex layout for the single-line signed-in card (plan name + action button). - New .license-key-row flex for input + Activate button on one row.
1 parent aaa3115 commit 4cd2ef2

2 files changed

Lines changed: 61 additions & 12 deletions

File tree

src/nls/root/strings.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,10 +2114,17 @@ define({
21142114
"GET_PHOENIX_PRO": "Get Phoenix Pro",
21152115
"USER_FREE_PLAN_NAME_DO_NOT_TRANSLATE": "Community Edition",
21162116
// license dialogs
2117-
"MANAGE_LICENSE_DIALOG_TITLE": "Manage Device License",
2117+
"MANAGE_LICENSE_DIALOG_TITLE": "Manage Licenses",
2118+
"LICENSE_ACCOUNT_HEADING": "Account License",
2119+
"LICENSE_DEVICE_HEADING": "Device License",
2120+
"LICENSE_SIGN_IN": "Sign In",
2121+
"LICENSE_PLAN_UNKNOWN": "Unknown",
2122+
"LICENSE_GET_PRO": "Get Phoenix Pro",
2123+
"LICENSE_MANAGE_ACCOUNT": "Manage Account",
21182124
"LICENSE_KEY": "License Key",
2125+
"LICENSE_KEY_PROMPT": "Have a device license key?",
21192126
"LICENSE_KEY_PLACEHOLDER": "Enter your license key\u2026",
2120-
"LICENSE_KEY_ACTIVATE": "Activate License",
2127+
"LICENSE_KEY_ACTIVATE": "Activate",
21212128
"LICENSE_KEY_ACTIVATING": "Activating\u2026",
21222129
"LICENSE_KEY_CURRENT": "Current Device License",
21232130
"LICENSE_KEY_CHECKING": "Checking license status\u2026",

src/styles/phoenix-pro.less

Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,27 @@
344344

345345
/* ---- License Management Dialog ---- */
346346
.license-management-dialog {
347+
/* The base modal caps body height at ~400px and turns on overflow:auto.
348+
This dialog has two stacked sections that exceed that; let it grow
349+
up to the viewport so the user doesn't have to scroll. */
350+
.modal-body {
351+
max-height: calc(100vh - 160px);
352+
}
353+
347354
/* ---- Layout ---- */
348-
.license-activation-section {
349-
margin-bottom: 24px;
355+
.license-account-section {
356+
margin-bottom: 8px;
357+
358+
/* Account section uses a bare <h3> (no flex header), so add the
359+
breathing room that .license-section-header would otherwise
360+
provide. */
361+
> .license-section-title {
362+
margin-bottom: 12px;
363+
}
350364
}
351365

352366
.license-status-section {
353-
margin-top: 24px;
367+
margin-top: 8px;
354368
}
355369

356370
/* ---- Form Elements ---- */
@@ -362,31 +376,43 @@
362376
display: block;
363377
margin-bottom: 8px;
364378
font-weight: 500;
365-
font-size: 16px;
366-
color: @bc-text-emphasized;
379+
font-size: 14px;
380+
color: @bc-text-medium;
367381

368382
.dark & {
369-
color: @dark-bc-text-alt;
383+
color: @dark-bc-text-medium;
370384
}
371385
}
372386

373387
.license-form-input {
374-
width: 100%;
375388
box-sizing: border-box;
376389
height: 38px;
377390
margin: 0;
378391
}
379392

393+
/* Activate-key row sits above the current-license card; input
394+
stretches, the Activate button hugs the right edge. */
395+
.license-key-row {
396+
display: flex;
397+
gap: 8px;
398+
align-items: stretch;
399+
400+
.license-form-input {
401+
flex: 1;
402+
min-width: 0;
403+
}
404+
}
405+
380406
/* ---- Activation Button ---- */
381407
.license-activate-btn {
382-
width: 100%;
383408
box-sizing: border-box;
384409
margin: 0;
385-
padding: 10px 16px;
410+
padding: 0 16px;
386411
font-size: 14px;
387412
font-weight: 500;
388413
border-radius: @bc-border-radius;
389414
transition: background-color 0.15s ease, border-color 0.15s ease;
415+
white-space: nowrap;
390416

391417
.btn-spinner {
392418
display: none;
@@ -398,9 +424,25 @@
398424
}
399425
}
400426

427+
/* Account section action row: right-aligned, tight spacing. */
428+
.license-account-actions {
429+
display: flex;
430+
justify-content: flex-end;
431+
gap: 8px;
432+
}
433+
434+
/* Signed-in account card: plan name on the left, action on the right,
435+
all on one line — drops the redundant "Plan:" label. */
436+
.license-account-row {
437+
display: flex;
438+
align-items: center;
439+
justify-content: space-between;
440+
gap: 12px;
441+
}
442+
401443
/* ---- Section Divider ---- */
402444
.license-divider {
403-
margin: 24px 0;
445+
margin: 16px 0;
404446
border: none;
405447
border-top: 1px solid @bc-panel-border;
406448

0 commit comments

Comments
 (0)