Skip to content

Commit 1f7e3c2

Browse files
mosin74mosin74
authored andcommitted
#Fix 23679 : Displaying horizontal scroll and Cards are not visible (oppia#23750)
* CSS fix display flex for exploration and collection card * Lint checks * Lint checks --------- Co-authored-by: mosin74 <mosin74@gmail.com>
1 parent 3a94af5 commit 1f7e3c2

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

core/templates/components/summary-tile/collection-summary-tile.component.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h3 class="activity-title e2e-test-collection-summary-tile-title">
2222
{{ getObjective | truncateAndCapitalize: 95 }}
2323
<span *ngIf="!getObjective">No objective specified.</span>
2424
</div>
25-
<ul class="metrics layout-align-space-between-center layout-row">
25+
<ul class="metrics layout-row">
2626
<li>
2727
<span>
2828
{{ 'I18N_COMMUNITY_LIBRARY_PAGE_COLLECTION' | translate }} ({{ getNodeCount }})
@@ -104,7 +104,13 @@ <h3 class="mobile-collection-title e2e-test-collection-summary-tile-title">{{ ge
104104
position: absolute;
105105
width: 36px;
106106
}
107-
107+
.oppia-activity-summary-tile .layout-row {
108+
align-items: center;
109+
display: flex;
110+
flex-direction: row;
111+
justify-content: space-between;
112+
max-width: 100%;
113+
}
108114
.mobile-activity-summary-card {
109115
box-shadow: slategrey 2px 4px 4px 0;
110116
padding: 0 0 0 0;

core/templates/components/summary-tile/exploration-summary-tile.component.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ oppia-exploration-summary-tile .exploration-summary-btn span {
110110
font-size: 16px;
111111
}
112112

113+
oppia-exploration-summary-tile .oppia-exploration-dashboard-card .layout-row {
114+
align-items: center;
115+
display: flex;
116+
flex-direction: row;
117+
justify-content: space-between;
118+
max-width: 100%;
119+
}
113120
@media (max-width: 480px) {
114121
oppia-exploration-summary-tile .exploration-summary-btn {
115122
font-size: 13px;
@@ -123,4 +130,5 @@ oppia-exploration-summary-tile .exploration-summary-btn span {
123130
oppia-exploration-summary-tile .exploration-summary-btn span {
124131
font-size: 13px;
125132
}
133+
126134
}

core/templates/components/summary-tile/exploration-summary-tile.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<span [innerHTML]="'I18N_LIBRARY_NO_OBJECTIVE' | translate">
6565
</span>
6666
</div>
67-
<ul *ngIf="!isCollectionPreviewTile" class="metrics layout-align-space-between-center layout-row">
67+
<ul *ngIf="!isCollectionPreviewTile" class="metrics layout-row">
6868
<li>
6969
<span class="e2e-test-exp-summary-tile-rating" [ngClass]="{'rating-disabled': !avgRating}">
7070
<span class="fas fa-star" [ngbTooltip]="'I18N_LIBRARY_RATINGS_TOOLTIP' | translate" placement="top" container="body">

core/templates/pages/library-page/library-page.component.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ oppia-library-page .button-alignment-div {
222222
.oppia-library-container {
223223
background-color: #afd2eb;
224224
min-height: 100vh;
225+
overflow-x: hidden;
225226
overflow-y: auto;
226227
position: relative;
227228
width: 100%;

0 commit comments

Comments
 (0)