Skip to content

Commit 19a7319

Browse files
committed
fix project form for presentation & error-icon background
1 parent 4dde978 commit 19a7319

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

projects/social_platform/src/app/office/projects/edit/services/project-form.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ProjectFormService {
4848
link: ["", Validators.pattern(/^(https?:\/\/)/)],
4949
industryId: [undefined, [Validators.required]],
5050
description: ["", [Validators.required, Validators.minLength(0), Validators.maxLength(800)]],
51-
presentationAddress: ["", [Validators.required]],
51+
presentationAddress: [""],
5252
coverImageAddress: ["", [Validators.required]],
5353
actuality: ["", [Validators.maxLength(400)]],
5454
targetAudience: ["", [Validators.required, Validators.maxLength(400)]],

projects/social_platform/src/app/office/shared/collaborator-card/collaborator-card.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<app-avatar [url]="collaborator.avatar" [size]="68"></app-avatar>
77
<div class="collaborator__info--text">
88
<h3 class="text-body-12 collaborator__role">
9-
{{ collaborator.firstName }} {{ collaborator.lastName }}
9+
{{ collaborator.firstName | truncate: 12 }} {{ collaborator.lastName | truncate: 12 }}
1010
</h3>
11-
<h3 class="text-body-10 collaborator__role">{{ collaborator.role }}</h3>
11+
<h3 class="text-body-10 collaborator__role">{{ collaborator.role | truncate: 12 }}</h3>
1212
</div>
1313

1414
<div class="collaborator__icons">

projects/social_platform/src/app/office/shared/collaborator-card/collaborator-card.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { Collaborator } from "@office/models/collaborator.model";
99
import { ProjectService } from "@office/services/project.service";
1010
import { AvatarComponent } from "@ui/components/avatar/avatar.component";
1111
import { IconComponent } from "@uilib";
12+
import { TruncatePipe } from "projects/core/src/lib/pipes/truncate.pipe";
1213

1314
/**
1415
* Компонент карточки участника команды или проект
@@ -24,7 +25,7 @@ import { IconComponent } from "@uilib";
2425
templateUrl: "./collaborator-card.component.html",
2526
styleUrl: "./collaborator-card.component.scss",
2627
standalone: true,
27-
imports: [CommonModule, ReactiveFormsModule, AvatarComponent, IconComponent],
28+
imports: [CommonModule, ReactiveFormsModule, AvatarComponent, IconComponent, TruncatePipe],
2829
})
2930
export class CollaboratorCardComponent implements OnInit {
3031
private readonly projectService = inject(ProjectService);

projects/social_platform/src/app/ui/components/input/input.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
justify-content: center;
115115
color: var(--red) !important;
116116
transform: translateY(-50%);
117+
background: var(--ligth-white);
118+
padding: 0 4px;
117119
}
118120

119121
&__right-icon {

0 commit comments

Comments
 (0)