Skip to content

Commit 5d114df

Browse files
committed
move avatar and cover image labels above controls in profile edit layout
1 parent 91116e1 commit 5d114df

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

projects/social_platform/src/app/office/profile/edit/edit.component.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,17 @@ <h1 class="profile__title">редактирование профиля</h1>
8282
<div class="profile__wrapper">
8383
@if(editingStep === 'main'){
8484
<div class="profile__wrapper--main">
85+
<div class="profile__main-text--grid">
86+
<label for="avatar" class="field-label" style="text-align: center">фото</label>
87+
88+
<label class="field-label text-body-12" for="coverImageAddress" style="text-align: center"
89+
>обложка для профиля</label
90+
>
91+
</div>
92+
8593
<div class="profile__row">
8694
@if (profileForm.get("avatar"); as avatar) {
8795
<div>
88-
<label for="avatar" class="field-label" style="text-align: center">фото</label>
8996
<fieldset class="profile__avatar">
9097
<app-avatar-control
9198
id="avatar"
@@ -103,12 +110,6 @@ <h1 class="profile__title">редактирование профиля</h1>
103110
</div>
104111
} @if (profileForm.get("coverImageAddress"); as coverImageAddress) {
105112
<fieldset class="profile__file">
106-
<label
107-
class="field-label text-body-12"
108-
for="coverImageAddress"
109-
style="text-align: center"
110-
>обложка для профиля</label
111-
>
112113
<app-upload-file
113114
formControlName="coverImageAddress"
114115
accept=".jpg,.png,.jpeg"

projects/social_platform/src/app/office/profile/edit/edit.component.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@
193193
}
194194
}
195195

196+
.profile__main-text--grid {
197+
display: grid;
198+
grid-template-columns: 0.1fr 2fr 1fr 1fr;
199+
grid-gap: 20px;
200+
}
201+
196202
.profile__main--grid {
197203
display: grid;
198204
grid-template-columns: 3fr 3fr 4fr;

0 commit comments

Comments
 (0)