Skip to content

Commit

Permalink
change margin to padding fix learningequality#11838
Browse files Browse the repository at this point in the history
  • Loading branch information
iskipu committed Feb 14, 2024
1 parent 96755ec commit 8c64fb0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,11 @@
}
},
gridOffset() {
const marginTop =
const paddingTop =
!this.windowIsLarge && (this.isLocalLibraryEmpty || this.deviceId) ? '140px' : '110px';
return this.isRtl
? { marginRight: `${this.sidePanelWidth + 24}px`, marginTop }
: { marginLeft: `${this.sidePanelWidth + 24}px`, marginTop };
? { paddingRight: `${this.sidePanelWidth + 24}px`, paddingTop }
: { paddingLeft: `${this.sidePanelWidth + 24}px`, paddingTop };
},
sidePanelWidth() {
if (
Expand Down Expand Up @@ -605,9 +605,9 @@
}
.main-grid {
margin-top: 110px;
margin-right: 24px;
margin-bottom: 96px;
padding-top: 110px;
padding-right: 24px;
padding-bottom: 96px;
}
.channels-label {
Expand Down

0 comments on commit 8c64fb0

Please sign in to comment.