Skip to content

Commit

Permalink
Fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Dec 19, 2024
1 parent 0e98688 commit ef6d377
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
{{ $tr('selectGroupsAndIndividualLearnersTitle') }}
</h1>
</template>
<div style="padding-top: 30px">
<!-- TODO: remove this div once SidePanelModal is fixed-->
<template #default>
<section>
<h2>{{ coachString('groupsLabel') }}</h2>
<h2 class="mt-0">
{{ coachString('groupsLabel') }}
</h2>
<KCheckbox
v-for="group in groups"
:key="group.id"
Expand Down Expand Up @@ -55,7 +56,7 @@
@update:selectedLearnerIds="updateAdHocLearners"
/>
</section>
</div>
</template>
<template #bottomNavigation>
<div class="bottom-nav-container">
<KButton
Expand Down Expand Up @@ -189,11 +190,14 @@

<style lang="scss" scoped>
.mt-0 {
margin-top: 0;
}
.bottom-nav-container {
display: flex;
justify-content: flex-end;
width: 100%;
margin-bottom: 16px;
}
.side-panel-title {
Expand Down
7 changes: 0 additions & 7 deletions packages/kolibri-common/components/SidePanelModal/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@
/* Will be calculated in mounted() as it will get the height of the fixedHeader then */
// @type {RefImpl<number>}
windowBreakpoint,
fixedHeaderHeight: 0,
fixedBottombarHeight: 0,
lastFocus: null,
};
},
Expand Down Expand Up @@ -181,11 +179,6 @@
mounted() {
const htmlTag = window.document.getElementsByTagName('html')[0];
htmlTag.style['overflow-y'] = 'hidden';
// Gets the height of the fixed header - adds 40 to account for padding + 24 for closeButton
this.fixedHeaderHeight = this.$refs.fixedHeader.clientHeight;
if (this.$refs.fixedBottombar) {
this.fixedBottombarHeight = this.$refs.fixedBottombar.clientHeight;
}
this.$nextTick(() => {
this.$emit('shouldFocusFirstEl');
});
Expand Down

0 comments on commit ef6d377

Please sign in to comment.