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:
Sivin Varghese 2021-04-08 19:42:38 +05:30 committed by GitHub
parent 28fb6469a3
commit 98f4a2f6f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 3 deletions

View file

@ -1,6 +1,7 @@
.dropdown-pane {
@include elegant-card;
@include border-light;
width: fit-content;
z-index: 999;
&.dropdown-pane--open {

View file

@ -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 {

View file

@ -170,6 +170,7 @@ export default {
.status-change {
.dropdown-pane {
top: -132px;
right: var(--space-normal);
}
.status-items {

View file

@ -80,3 +80,8 @@ export default {
},
};
</script>
<style lang="scss" scoped>
.dropdown-pane {
right: 0;
}
</style>

View file

@ -112,7 +112,6 @@ export default {
.dropdown-pane {
right: var(--space-minus-small);
top: 48px;
width: auto;
}
.icon {