Skip to content

Commit

Permalink
Fix Add Course button in timetable misalignment (#3829)
Browse files Browse the repository at this point in the history
* fix misalignment issues

* fix for small device screens as well

* format
  • Loading branch information
kaze-droid authored Sep 30, 2024
1 parent d36ac0f commit 6588b48
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions website/src/views/components/Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@
}
}

@include media-breakpoint-up(sm) {
&.fullscreen {
top: 0;
right: 0;
bottom: 0;
left: 0;
max-width: 100%;
max-height: 100%;
padding: 0;
}
}


@include media-breakpoint-up(md) {
top: 5%;
max-height: 90%;
Expand Down
9 changes: 9 additions & 0 deletions website/src/views/timetable/ModulesSelect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ $item-padding-vertical: 0.6rem;
background: var(--body-bg);
}

@include media-breakpoint-up(xs) {
.tip {
position: absolute;
top: $input-height;
right: 0;
left: 0;
}
}

@include media-breakpoint-up(md) {
.selectList,
.tip {
Expand Down

0 comments on commit 6588b48

Please sign in to comment.