Skip to content

Commit

Permalink
fixed frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
plumshum committed Oct 30, 2024
1 parent 843a9aa commit b4b20e6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/components/Modals/SaveCourseModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
align-self: center;
width: 112%;
height: 2.5rem;
border: 0.3px solid $lightestGray;
color: $primaryGray;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
Expand Down Expand Up @@ -54,6 +53,7 @@
overflow-y: auto;
overflow-x: hidden;
box-sizing: border-box;
flex-grow: 1;

::-webkit-scrollbar-button {
display: none; // Hide the up and down arrows
Expand All @@ -66,8 +66,9 @@
align-items: flex-start;
gap: 0.5rem;
width: 100%;

&.default-collection {
margin-top: 0.5rem;
justify-content: center;
align-items: center;
}
Expand All @@ -80,7 +81,8 @@
color: $primaryGray;
font-weight: 600;
column-gap: 0.5rem;
padding-bottom: 11px; // adjust padding if needed
padding-top: 0.5rem;
padding-bottom: 8px; // adjust padding if needed

input[type='checkbox'] {
margin: 0;
Expand Down
8 changes: 6 additions & 2 deletions src/components/Modals/SaveCourseModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
</div>
</template>

<div class="saveCourseModal-divider-line"></div>
<div class="saveCourseModal-header">
<div class="saveCourseModal-header-text">
<span> Collections </span>
Expand All @@ -24,6 +25,10 @@
</button>
</div>
</div>
<div
v-if="isNumCollectionGreaterThanFour || (isDefaultCollection && !isEditing)"
class="saveCourseModal-divider-line"
></div>

<div :class="['saveCourseModal-body']">
<div
Expand Down Expand Up @@ -70,6 +75,7 @@
maxlength="30"
v-model="newCollectionName"
@keydown.enter="finishEditing"
@blur="finishEditing"
class="editable-input"
placeholder="Add new collection"
/>
Expand All @@ -80,8 +86,6 @@
</teleport-modal>
</template>

<!--@blur="finishEditing"-->

<script lang="ts">
import { defineComponent } from 'vue';
import TeleportModal from '@/components/Modals/TeleportModal.vue';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/TeleportModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export default defineComponent({
}
&--addCollection {
margin-top: 3rem;
margin-top: 1rem;
margin-right: 0.2rem;
}
}
Expand Down

0 comments on commit b4b20e6

Please sign in to comment.