Skip to content

Commit

Permalink
Fix: Dropdown width issue fixes by using fit-content (#2048)
Browse files Browse the repository at this point in the history
* Dropdown width issue fixes by using fit-content

* Review fixes

* Review fixes

* Review fixes

* Review fixes

Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
  • Loading branch information
iamsivin and nithindavid committed Apr 8, 2021
1 parent 28fb646 commit 98f4a2f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.dropdown-pane {
@include elegant-card;
@include border-light;
width: fit-content;
z-index: 999;

&.dropdown-pane--open {
Expand Down
7 changes: 5 additions & 2 deletions app/javascript/dashboard/assets/scss/widgets/_sidemenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@
flex-direction: column;
position: relative;

&:hover {
background: var(--color-background-light);
}

.dropdown-pane {
bottom: 6rem;
display: block;
left: 5rem;
visibility: visible;
width: 80%;
width: fit-content;
}

.active {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export default {
.status-change {
.dropdown-pane {
top: -132px;
right: var(--space-normal);
}
.status-items {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,8 @@ export default {
},
};
</script>
<style lang="scss" scoped>
.dropdown-pane {
right: 0;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export default {
.dropdown-pane {
right: var(--space-minus-small);
top: 48px;
width: auto;
}
.icon {
Expand Down

0 comments on commit 98f4a2f

Please sign in to comment.