Ghost element needed 10px to max-width to be consistent
Also updated expand icon that requires updates to height, width & color attribute.
This commit is contained in:
@@ -42,8 +42,11 @@ export default {
|
|||||||
const elementWithoutOverflow = document.createElement("div");
|
const elementWithoutOverflow = document.createElement("div");
|
||||||
elementWithoutOverflow.setAttribute(
|
elementWithoutOverflow.setAttribute(
|
||||||
"style",
|
"style",
|
||||||
`max-width: ${width}px; display: block; font-size: ${fontSize}; line-height: ${lineHeight};`
|
`max-width: ${Math.ceil(
|
||||||
|
width + 10
|
||||||
|
)}px; display: block; font-size: ${fontSize}; line-height: ${lineHeight};`
|
||||||
);
|
);
|
||||||
|
// Don't know why need to add 10px to width, but works out perfectly
|
||||||
|
|
||||||
elementWithoutOverflow.classList.add("dummy-non-overflow");
|
elementWithoutOverflow.classList.add("dummy-non-overflow");
|
||||||
elementWithoutOverflow.innerText = this.description;
|
elementWithoutOverflow.innerText = this.description;
|
||||||
@@ -96,11 +99,9 @@ span.truncated {
|
|||||||
|
|
||||||
svg {
|
svg {
|
||||||
transition: 0.4s ease all;
|
transition: 0.4s ease all;
|
||||||
|
height: 22px;
|
||||||
@include mobile {
|
width: 22px;
|
||||||
height: 20px;
|
fill: var(--text-color);
|
||||||
width: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.rotate {
|
&.rotate {
|
||||||
transform: rotateX(180deg);
|
transform: rotateX(180deg);
|
||||||
|
|||||||
Reference in New Issue
Block a user