Skip to content

Commit d2df715

Browse files
committed
fix info-card name & add to program news views
1 parent 01dd322 commit d2df715

5 files changed

Lines changed: 27 additions & 6 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
}
119119

120120
&__name {
121-
max-width: 120px;
122121
margin-bottom: 3px;
123122
overflow: hidden;
124123
color: var(--black);

projects/social_platform/src/app/office/program/detail/list/list.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
&__list {
3333
display: grid;
34-
flex-grow: 1;
3534
grid-template-columns: 1fr;
3635
row-gap: 50px;
3736
column-gap: 20px;

projects/social_platform/src/app/office/program/detail/shared/news-card/news-card.component.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
<img class="card__avatar" [src]="newsItem.imageAddress" [alt]="newsItem.name" />
66
<div>
77
<div class="card__top">
8-
<div class="card__name text-body-10">{{ newsItem.name | truncate: 30 }}</div>
8+
<div class="card__info" style="display: flex; flex-direction: column">
9+
<div class="card__name text-body-10">{{ newsItem.name | truncate: 30 }}</div>
10+
<div class="card__date text-body-10">
11+
{{ newsItem.datetimeCreated | dayjs: "format":"DD.MM.YY" }}
12+
</div>
13+
</div>
914
@if (newsItem.pin) {
1015
<i appIcon icon="pin" appSquare="12"></i>
1116
}
@@ -113,8 +118,9 @@
113118
</div>
114119
</div>
115120
<div class="footer__right">
116-
<div class="card__date text-body-10">
117-
{{ newsItem.datetimeCreated | dayjs: "format":"DD.MM.YY" }}
121+
<div class="card__views text-body-10">
122+
<i appIcon icon="eye" appSquare="12"></i>
123+
{{ newsItem.viewsCount }}
118124
</div>
119125
</div>
120126
</div>

projects/social_platform/src/app/office/program/detail/shared/news-card/news-card.component.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@
7676
color: var(--dark-grey);
7777
}
7878

79+
&__views {
80+
display: flex;
81+
align-items: center;
82+
gap: 3px;
83+
color: var(--dark-grey);
84+
85+
i {
86+
margin-bottom: 1px;
87+
}
88+
}
89+
7990
/* stylelint-disable value-no-vendor-prefix */
8091
&__text {
8192
white-space: break-spaces;
@@ -173,6 +184,12 @@
173184
align-items: center;
174185
}
175186

187+
&__right {
188+
display: flex;
189+
align-items: center;
190+
gap: 5px;
191+
}
192+
176193
&__item {
177194
display: flex;
178195
align-items: center;

projects/social_platform/src/app/office/projects/detail/info/info.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
&__directions {
102102
display: grid;
103103
grid-template-columns: repeat(5, 1fr);
104-
grid-gap: 20px;
104+
grid-gap: 10px;
105105
align-items: center;
106106
margin-top: 24px;
107107
}

0 commit comments

Comments
 (0)