feat: better visualization (#102)
Co-authored-by: ClaudioAmato <32262813+ClaudioAmato@users.noreply.github.com>
This commit is contained in:
parent
d50fb677b4
commit
8e0ce90093
2 changed files with 12 additions and 5 deletions
13
src/btn.css
13
src/btn.css
|
@ -1,6 +1,9 @@
|
||||||
div {
|
div {
|
||||||
flex-wrap: wrap;
|
width: 422px;
|
||||||
display: flex;
|
right: 0;
|
||||||
|
margin: 0 18px 18px 0;
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-family: 'Open Sans', 'Roboto', 'Helvetica neue', Helvetica, sans-serif;
|
font-family: 'Open Sans', 'Roboto', 'Helvetica neue', Helvetica, sans-serif;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -9,6 +12,12 @@ div {
|
||||||
min-width: 230px;
|
min-width: 230px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 950px) {
|
||||||
|
div {
|
||||||
|
width: auto !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
width: 205px !important;
|
width: 205px !important;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
|
|
|
@ -123,10 +123,8 @@ export class BtnList {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const anchorDiv = this.getBtnParent()
|
const anchorDiv = this.getBtnParent()
|
||||||
const { width, top, left } = anchorDiv.getBoundingClientRect()
|
const { top } = anchorDiv.getBoundingClientRect()
|
||||||
newParent.style.width = `${width}px`
|
|
||||||
newParent.style.top = `${top}px`
|
newParent.style.top = `${top}px`
|
||||||
newParent.style.left = `${left}px`
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue