Skip to content

Commit 7bdfb1e

Browse files
committed
add editing of news in profile & program, fix editing in profile & program news edit mode
1 parent 85735a3 commit 7bdfb1e

9 files changed

Lines changed: 283 additions & 295 deletions

File tree

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,14 @@
118118
<input type="file" accept="*/*" multiple (change)="onUploadFile($event)" />
119119
</label>
120120
<div class="editor-footer__actions">
121-
<app-button customTypographyClass="text-body-12" color="grey" (click)="editMode = false"
121+
<app-button
122+
size="medium"
123+
customTypographyClass="text-body-12"
124+
color="grey"
125+
(click)="editMode = false"
122126
>отмена</app-button
123127
>
124-
<app-button customTypographyClass="text-body-12" (click)="onEditSubmit()"
128+
<app-button size="medium" customTypographyClass="text-body-12" (click)="onEditSubmit()"
125129
>сохранить</app-button
126130
>
127131
</div>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@
3333
z-index: 2;
3434
padding: 20px 0;
3535
background-color: var(--white);
36-
border: 1px solid var(--medium-grey-for-outline);
36+
border: 0.5px solid var(--medium-grey-for-outline);
3737
border-radius: var(--rounded-xl);
3838
}
3939

4040
&__option {
4141
padding: 5px 20px;
4242
cursor: pointer;
43+
width: 120px;
4344
transition: background-color 0.2s;
4445

4546
&:hover {
@@ -209,6 +210,7 @@
209210
&__actions {
210211
display: flex;
211212
gap: 10px;
213+
align-items: center;
212214
}
213215

214216
&__attach {

0 commit comments

Comments
 (0)