Skip to content

Commit 0949e28

Browse files
committed
fix news field for semi-columns text
1 parent c8bef4d commit 0949e28

4 files changed

Lines changed: 18 additions & 10 deletions

File tree

projects/social_platform/src/app/office/features/news-form/news-form.component.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
<form class="form" [formGroup]="messageForm" (ngSubmit)="onSubmit()">
44
<div class="form__row">
5-
<app-input
5+
<app-textarea
66
size="big"
77
formControlName="text"
8-
[hasBorder]="false"
98
class="form__input text-body-12"
109
autosize
1110
placeholder="сегодня был хороший день"
1211
(paste)="onPaste($event)"
1312
(keydown.meta.enter)="onSubmit()"
1413
[maxLength]="15940"
15-
></app-input>
14+
></app-textarea>
1615
<i appIcon icon="send" appSquare="12" class="form__send" (click)="onSubmit()"></i>
1716
</div>
1817
<div class="form__images">

projects/social_platform/src/app/office/features/news-form/news-form.component.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@
88
display: flex;
99
align-items: center;
1010

11-
::ng-deep app-input {
12-
input {
11+
::ng-deep app-textarea {
12+
textarea {
1313
width: 100%;
14-
background-color: transparent;
15-
border-bottom: 0.5px solid var(--medium-grey-for-outline);
14+
background: transparent;
15+
border: none;
16+
min-height: 50px;
17+
padding: 0px 0px 10px 8px;
18+
19+
&:focus {
20+
box-shadow: none;
21+
border: none;
22+
}
1623
}
1724
}
1825

projects/social_platform/src/app/office/features/news-form/news-form.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { FileUploadItemComponent } from "@ui/components/file-upload-item/file-up
1010
import { IconComponent, InputComponent } from "@ui/components";
1111
import { AutosizeModule } from "ngx-autosize";
1212
import { ImgCardComponent } from "@office/shared/img-card/img-card.component";
13+
import { TextareaComponent } from "@ui/components/textarea/textarea.component";
1314

1415
/**
1516
* Компонент формы создания новости
@@ -42,6 +43,7 @@ import { ImgCardComponent } from "@office/shared/img-card/img-card.component";
4243
FileUploadItemComponent,
4344
InputComponent,
4445
ImgCardComponent,
46+
TextareaComponent,
4547
],
4648
})
4749
export class NewsFormComponent implements OnInit {

projects/social_platform/src/app/office/program/detail/main/main.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ <h3 class="links__title text-body-12">материалы</h3>
169169
<app-modal [open]="registeredProgramModal()" (openChange)="registeredProgramModal.set(false)">
170170
<div class="cancel" style="width: 605px; padding: 0px 24px">
171171
<div class="cancel__top">
172-
<p class="cancel__title text-body-14">поздравляем, с регистрацией на программу! 🎉</p>
172+
<p class="cancel__title text-body-14">поздравляем с регистрацией на программу! 🎉</p>
173173
</div>
174174

175175
<div class="cancel__text-block">
@@ -193,8 +193,8 @@ <h3 class="links__title text-body-12">материалы</h3>
193193
</p>
194194

195195
<p class="text-body-12">
196-
Будьте внимательны: по истечению дедлайна, определенного организаторами, кнопка становится
197-
не кликабельной 👻
196+
Будьте внимательны: по истечению дедлайна определенного организаторами, кнопка становится
197+
некликабельной 👻
198198
</p>
199199
</div>
200200

0 commit comments

Comments
 (0)