Skip to content

Commit 20df5c5

Browse files
committed
fix size of info card to project all page
1 parent b1ee084 commit 20df5c5

3 files changed

Lines changed: 26 additions & 22 deletions

File tree

projects/social_platform/src/app/office/features/detail/detail.component.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -275,36 +275,37 @@ <h1 class="info__title text-body-12">
275275
</app-button>
276276
} }
277277

278+
<div class="info__divider"></div>
279+
280+
<app-button
281+
[routerLink]="'/office/projects/' + info.id + '/team'"
282+
[appearance]="isTeamPage ? 'inline' : 'outline'"
283+
size="medium"
284+
customTypographyClass="text-body-12"
285+
>
286+
команда
287+
</app-button>
288+
289+
@if (isInProject) { @if (profile) { @if (profile.id === info.leader) {
278290
<a
279291
class="info__edit"
280292
[routerLink]="
281293
isEditDisable ? ['/office/projects', info.id] : ['/office/projects', info.id, 'edit']
282294
"
283295
[queryParams]="isEditDisable ? {} : { editingStep: 'main' }"
284296
>
285-
@if (profile) { @if (profile.id === info.leader) {
286297
<app-button
287298
appearance="outline"
299+
size="medium"
288300
customTypographyClass="text-body-12"
289301
(click)="onUnableEditingProject()"
290302
[ngStyle]="{ opacity: isEditDisable ? '0.5' : '1' }"
291303
[color]="isEditDisable ? 'grey' : 'primary'"
292304
>
293305
редактировать
294306
</app-button>
295-
} }
296307
</a>
297-
298-
<app-button
299-
[routerLink]="'/office/projects/' + info.id + '/team'"
300-
[appearance]="isTeamPage ? 'inline' : 'outline'"
301-
size="medium"
302-
customTypographyClass="text-body-12"
303-
>
304-
команда
305-
</app-button>
306-
307-
@if (isInProject) {
308+
}@else {
308309
<app-button
309310
appearance="outline"
310311
color="red"
@@ -314,6 +315,7 @@ <h1 class="info__title text-body-12">
314315
>
315316
выйти из проекта
316317
</app-button>
318+
} }
317319

318320
<app-modal [(open)]="isLeaveProjectModalOpen">
319321
<div class="unsubscribe-modal">

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
<div class="card__info">
1717
<div class="card__info--vacancies">
1818
<p class="text-body-6">12</p>
19-
<i appIcon icon="suitcase" appSquare="4"></i>
19+
<i appIcon icon="suitcase" appSquare="6"></i>
2020
</div>
2121
<div class="card__info--collaborators">
2222
<p class="text-body-6">12</p>
23-
<i appIcon icon="team" appSquare="4"></i>
23+
<i appIcon icon="team" appSquare="6"></i>
2424
</div>
2525
</div>
2626
} @if (shouldShowSubscriptionBadge()) {
2727
<div class="card__badge">
2828
<i
2929
appIcon
3030
[icon]="isSubscribed ? 'subscribe-badge' : 'unsubscribe-badge'"
31-
appWidth="12"
32-
appHeight="18"
31+
appWidth="18"
32+
appHeight="34"
3333
class="card__subscribe-badge"
3434
(click)="toggleSubscription($event)"
3535
></i>
@@ -77,9 +77,11 @@
7777
</ng-template>
7878

7979
<ng-template #regularCardHeader>
80-
@if (type === 'projects') {
81-
<p class="text-body-12 card__name">{{ info?.name }}</p>
82-
@if (industryService.industries | async; as industries) {
80+
@if (type === 'projects') { @if (info.name) { @if(info.name.length > 12) {
81+
<p class="text-body-12 card__name">{{ info.name.slice(0, 12) }}...</p>
82+
} @else {
83+
<p class="text-body-12 card__name">{{ info.name }}</p>
84+
} } @if (industryService.industries | async; as industries) {
8385
<p class="text-body-6 card__industry">
8486
@if (industryService.getIndustry(industries, info?.industry!); as industry) {
8587
<span>{{ industry?.name }}</span>
@@ -100,8 +102,7 @@
100102
<ng-template #cardDescription>
101103
<div
102104
class="card__description"
103-
[style.max-height]="type === 'members' ? '50px' : '20px'"
104-
[style.]
105+
[style.max-height]="type === 'members' ? '50px' : '24px'"
105106
[class.invite-description]="type === 'invite'"
106107
>
107108
@if (type === 'invite') {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
align-items: center;
108108
overflow: hidden;
109109
color: var(--dark-grey);
110+
width: 120px;
110111
text-align: center;
111112
word-break: break-word;
112113

0 commit comments

Comments
 (0)