Clean up some style properties in react elements

pull/6/head
Tristan Daniël Maat 2022-08-13 23:32:29 +01:00
parent ad8d09745e
commit 599880f035
Signed by: tlater
GPG Key ID: 49670FD774E43268
2 changed files with 8 additions and 13 deletions

View File

@ -127,17 +127,8 @@ function Visualizer() {
ref={visualizer}
className="is-flex-grow-1 is-clipped is-relative"
>
<canvas
style={{
display: "block",
position: "absolute",
boxSizing: "border-box",
}}
></canvas>
<span
className="is-bottom-left"
style={{ display: "relative" }}
></span>
<canvas className="is-block is-absolute is-border-box"></canvas>
<span className="is-bottom-left"></span>
</div>
);
} else {

View File

@ -3,8 +3,12 @@ $fa-font-path: "npm:@fortawesome/fontawesome-free/webfonts";
@import "~/node_modules/@fortawesome/fontawesome-free/scss/fontawesome";
@import "~/node_modules/@fortawesome/fontawesome-free/scss/solid";
.is-relative {
position: relative !important;
.is-border-box {
box-sizing: border-box !important;
}
.is-absolute {
position: absolute !important;
}
.is-bottom-left {