Fix: Dropdown width issue fixes by using fit-content (#2048)
* 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>
This commit is contained in:
parent
28fb6469a3
commit
98f4a2f6f3
5 changed files with 12 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
.dropdown-pane {
|
||||
@include elegant-card;
|
||||
@include border-light;
|
||||
width: fit-content;
|
||||
z-index: 999;
|
||||
|
||||
&.dropdown-pane--open {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -170,6 +170,7 @@ export default {
|
|||
.status-change {
|
||||
.dropdown-pane {
|
||||
top: -132px;
|
||||
right: var(--space-normal);
|
||||
}
|
||||
|
||||
.status-items {
|
||||
|
|
|
@ -80,3 +80,8 @@ export default {
|
|||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.dropdown-pane {
|
||||
right: 0;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -112,7 +112,6 @@ export default {
|
|||
.dropdown-pane {
|
||||
right: var(--space-minus-small);
|
||||
top: 48px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.icon {
|
||||
|
|
Loading…
Reference in a new issue