Skip to content

Commit 75602e5

Browse files
committed
fix description body width
1 parent cc249bd commit 75602e5

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

projects/social_platform/src/app/office/courses/lesson/shared/exclude-task/exclude-task.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
} @else if (data.imageUrl) {
1313
<img appImagePreview alt="exclude-image" [src]="data.imageUrl" class="exclude__image" />
1414
<p class="text-body-12-bold">{{ data.title | truncate: 50 }}</p>
15+
} @if (!data.imageUrl) {
16+
<p class="exclude__text text-body-12-bold">{{ data.answerTitle | truncate: 110 }}</p>
1517
}
18+
1619
<p class="text-body-12 exclude__description">{{ data.bodyText | truncate: 700 }}</p>
1720
</div>
1821
</div>

projects/social_platform/src/app/office/courses/lesson/shared/exclude-task/exclude-task.component.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@
9999
border-radius: var(--rounded-lg);
100100
}
101101

102-
// &__body {
103-
// &--hasContent {
104-
// max-width: 333px;
105-
// }
106-
// }
102+
&__body {
103+
max-width: 422px;
104+
&--hasContent {
105+
max-width: 333px;
106+
}
107+
}
107108

108109
&__content {
109110
&--hasContent {

projects/social_platform/src/app/office/courses/lesson/shared/radio-select-task/radio-select-task.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<img appImagePreview class="radio__img" [src]="data.imageUrl" />
1111
<p class="text-body-12-bold">{{ data.title | truncate: 50 }}</p>
1212
</div>
13+
} @if (!data.imageUrl) {
14+
<p class="radio__title text-body-12-bold">{{ data.title | truncate: 110 }}</p>
1315
}
1416

1517
<p class="text-body-12 radio__description">{{ data.bodyText | truncate: 700 }}</p>

projects/social_platform/src/app/office/courses/lesson/shared/radio-select-task/radio-select-task.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@
107107
}
108108

109109
&__body {
110+
max-width: 422px;
111+
110112
&--hasContent {
111113
display: flex;
112114
flex-direction: column;

0 commit comments

Comments
 (0)