+
-
diff --git a/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.scss b/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.scss
index 1d6dbb5a4..a8d503a74 100644
--- a/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.scss
+++ b/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.scss
@@ -12,6 +12,11 @@
width: 353px;
min-width: 353px;
padding: 25px;
+ overflow: visible;
+
+ &:hover {
+ overflow: visible;
+ }
.heading-xl {
margin-bottom: 24px;
@@ -27,3 +32,8 @@
}
}
}
+
+.w-150 {
+ max-width: 150px;
+ width: 150px;
+}
diff --git a/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.ts b/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.ts
index b5b69060b..4caff813a 100644
--- a/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.ts
+++ b/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.ts
@@ -5,7 +5,7 @@ import { AppStateService } from '../../../state/app-state.service';
import { FileDownloadService } from '../../file/service/file-download.service';
import { environment } from '../../../../environments/environment';
import { HttpClient } from '@angular/common/http';
-import { FormBuilder, FormGroup } from '@angular/forms';
+import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { debounce } from '../../../utils/debounce';
import { WatermarkControllerService, WatermarkModel } from '@redaction/red-ui-http';
import { NotificationService, NotificationType } from '../../../notification/notification.service';
@@ -36,6 +36,8 @@ export class WatermarkScreenComponent implements OnInit {
@ViewChild('viewer', { static: true })
private _viewer: ElementRef;
+ @ViewChild('textarea') private _textarea: ElementRef;
+
public viewReady = false;
public configForm: FormGroup;
@@ -100,6 +102,12 @@ export class WatermarkScreenComponent implements OnInit {
this.configChanged();
}
+ public triggerChanges() {}
+
+ public get hasScrollbar() {
+ return this._textarea?.nativeElement.clientHeight < this._textarea?.nativeElement.scrollHeight;
+ }
+
private _loadViewer() {
WebViewer(
{
@@ -154,10 +162,10 @@ export class WatermarkScreenComponent implements OnInit {
private _initForm() {
this.configForm = this._formBuilder.group({
- text: null,
- hexColor: null,
- opacity: null,
- fontSize: null
+ text: [null, Validators.required],
+ hexColor: [null, Validators.required],
+ opacity: [null, Validators.required],
+ fontSize: [null, Validators.required]
});
}
}
diff --git a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.html b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.html
index 42e3a3a62..3e01d8411 100644
--- a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.html
+++ b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.html
@@ -23,7 +23,7 @@
>
diff --git a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.html b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.html
index b7a623045..23c176b20 100644
--- a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.html
+++ b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.html
@@ -24,7 +24,13 @@
>
diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json
index efff06f2c..3eb999dc7 100644
--- a/apps/red-ui/src/assets/i18n/en.json
+++ b/apps/red-ui/src/assets/i18n/en.json
@@ -100,11 +100,17 @@
}
},
"add-edit-dialog": {
- "header-new": "New Project",
+ "header-new": "Create Project",
"header-edit": "Edit Project",
"form": {
- "description": "Description",
- "name": "Name",
+ "name": {
+ "label": "Project Name",
+ "placeholder": "Enter Name"
+ },
+ "description": {
+ "label": "Description",
+ "placeholder": "Enter Description"
+ },
"due-date": "Due Date",
"template": "Project Template"
},
diff --git a/apps/red-ui/src/assets/styles/red-input.scss b/apps/red-ui/src/assets/styles/red-input.scss
index c416f8bda..99314813d 100644
--- a/apps/red-ui/src/assets/styles/red-input.scss
+++ b/apps/red-ui/src/assets/styles/red-input.scss
@@ -19,6 +19,9 @@
border-bottom-right-radius: 7px;
cursor: pointer;
transition: background-color 0.25s ease;
+ display: flex;
+ align-items: center;
+ justify-content: center;
&:hover {
background: $grey-6;
@@ -85,10 +88,41 @@
color: $grey-1;
opacity: 0.7;
}
+
+ &.w-75 {
+ width: 75px;
+ max-width: 75px;
+ }
+
+ &.w-250 {
+ width: 250px;
+ max-width: 250px;
+ }
+
+ &.w-300 {
+ width: 300px;
+ max-width: 300px;
+ }
+
+ &.w-full {
+ width: 100%;
+ max-width: 100%;
+ }
+ }
+
+ input {
+ max-width: 300px;
+ width: 300px;
+
+ &.hex-color-input {
+ width: 150px;
+ max-width: 150px;
+ }
}
mat-select {
- width: 220px;
+ width: 400px;
+ max-width: 400px;
.mat-select-trigger {
height: 32px;
@@ -100,10 +134,17 @@
}
textarea {
- resize: none;
+ resize: vertical;
padding-top: 7px;
padding-bottom: 7px;
- @include no-scroll-bar();
+ @include scroll-bar;
+ width: 400px;
+ max-width: 400px;
+
+ &.has-scrollbar {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ }
}
label {
diff --git a/apps/red-ui/src/assets/styles/red-mixins.scss b/apps/red-ui/src/assets/styles/red-mixins.scss
index d10770e11..aa19c514b 100644
--- a/apps/red-ui/src/assets/styles/red-mixins.scss
+++ b/apps/red-ui/src/assets/styles/red-mixins.scss
@@ -32,7 +32,6 @@
/* Track */
&::-webkit-scrollbar-track {
background: $grey-2;
- //background: red;
}
/* Handle */
diff --git a/apps/red-ui/src/assets/styles/red-text-styles.scss b/apps/red-ui/src/assets/styles/red-text-styles.scss
index 28648588e..dddc7c5dc 100644
--- a/apps/red-ui/src/assets/styles/red-text-styles.scss
+++ b/apps/red-ui/src/assets/styles/red-text-styles.scss
@@ -57,8 +57,15 @@ pre {
line-height: 14px;
transition: opacity 0.2s;
- &.cancel:hover {
- opacity: 1;
+ &.cancel {
+ &:hover {
+ opacity: 1;
+ }
+
+ &.disabled {
+ opacity: 0.3;
+ cursor: default;
+ }
}
}