From d94f1fb003f99234a5d07e417552a4fd932759c4 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 18 Jan 2024 09:39:41 +0200 Subject: [PATCH] Update license banner rendering (#5085) --- .../src/creator.component.html | 12 +++++------- .../survey-creator-core/src/components/creator.scss | 3 +-- .../survey-creator-core/src/localization/english.ts | 2 +- .../survey-creator-core/src/localization/hebrew.ts | 3 +-- .../survey-creator-knockout/src/survey-creator.html | 3 +-- packages/survey-creator-react/src/SurveyCreator.tsx | 7 ++----- packages/survey-creator-vue/src/Creator.vue | 9 ++++----- 7 files changed, 15 insertions(+), 24 deletions(-) diff --git a/packages/survey-creator-angular/src/creator.component.html b/packages/survey-creator-angular/src/creator.component.html index 84455da94b..bef8bad9b0 100644 --- a/packages/survey-creator-angular/src/creator.component.html +++ b/packages/survey-creator-angular/src/creator.component.html @@ -23,8 +23,10 @@
- + [attr.id]="'scrollableDiv-' + tab.id" + [class.svc-creator__toolbox--right]="creator.toolboxLocation == 'right'"> +
@@ -40,11 +42,7 @@
- - - {{creator.licenseText}} - - +
diff --git a/packages/survey-creator-core/src/components/creator.scss b/packages/survey-creator-core/src/components/creator.scss index 24ab0bf0b9..3776bb0104 100644 --- a/packages/survey-creator-core/src/components/creator.scss +++ b/packages/survey-creator-core/src/components/creator.scss @@ -123,13 +123,12 @@ survey-creator, .svc-creator__non-commercial-text { color: $primary-foreground; font-family: $font-family; - font-weight: bold; font-size: calcSize(2); vertical-align: middle; + padding: 12px 128px; a { color: $primary-foreground; - text-decoration: none; } } diff --git a/packages/survey-creator-core/src/localization/english.ts b/packages/survey-creator-core/src/localization/english.ts index c130844004..5dfcc28ca3 100644 --- a/packages/survey-creator-core/src/localization/english.ts +++ b/packages/survey-creator-core/src/localization/english.ts @@ -16,7 +16,7 @@ export var enStrings = { deleteQuestion: "Delete Question", convertTo: "Convert to", drag: "Drag element", - license: "To use our library in your app, a developer license is necessary. If you currently hold an activated license, ensure you're using the latest version available." + license: "To use our library, a developer license is required. If you have an active license, set up your license key and ensure you're using the latest version." }, // Question types qt: { diff --git a/packages/survey-creator-core/src/localization/hebrew.ts b/packages/survey-creator-core/src/localization/hebrew.ts index 0f984d4cf7..8b459be24c 100644 --- a/packages/survey-creator-core/src/localization/hebrew.ts +++ b/packages/survey-creator-core/src/localization/hebrew.ts @@ -14,8 +14,7 @@ export var hebrewStrings = { deletePanel: "מחיקת לוח", deleteQuestion: "מחיקת שאלה", convertTo: "המרה ל", - drag: "גרירת אלמנט", - license: "אנא רכשו רישיון מפתחים כדי להשתמש ביוצר הסקר ביישום שלכם" + drag: "גרירת אלמנט" }, // Question types qt: { diff --git a/packages/survey-creator-knockout/src/survey-creator.html b/packages/survey-creator-knockout/src/survey-creator.html index 335367d3c1..f837690eb9 100644 --- a/packages/survey-creator-knockout/src/survey-creator.html +++ b/packages/survey-creator-knockout/src/survey-creator.html @@ -51,8 +51,7 @@
- +
diff --git a/packages/survey-creator-react/src/SurveyCreator.tsx b/packages/survey-creator-react/src/SurveyCreator.tsx index f45c400886..82ce5e2e2a 100644 --- a/packages/survey-creator-react/src/SurveyCreator.tsx +++ b/packages/survey-creator-react/src/SurveyCreator.tsx @@ -65,13 +65,10 @@ export class SurveyCreatorComponent extends SurveyElementBase< const fullContainerClassName = "svc-flex-row svc-full-container" + (" svc-creator__side-bar--" + this.creator.sidebarLocation); let licenseBanner = null; if (!this.props.creator.haveCommercialLicense) { + const htmlValue = { __html: this.props.creator.licenseText }; licenseBanner = (
- - - {this.props.creator.licenseText} - - +
); } diff --git a/packages/survey-creator-vue/src/Creator.vue b/packages/survey-creator-vue/src/Creator.vue index ea3309a7f0..bd9e1c5b6d 100644 --- a/packages/survey-creator-vue/src/Creator.vue +++ b/packages/survey-creator-vue/src/Creator.vue @@ -79,11 +79,10 @@
- - - {{ model.licenseText }} - - +