Skip to content

Commit

Permalink
fix launcher height
Browse files Browse the repository at this point in the history
  • Loading branch information
Endercass committed Jan 14, 2025
1 parent 0a5d806 commit 641f47e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/api/UI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,9 @@ class AnuraUI {
this.class ||= [];
if (typeof this.class === "string") this.class = [this.class];

const dynamicStyle: any = {};

if (this.width) dynamicStyle.width = this.width;
if (this.height) dynamicStyle.height = this.height;
if (this.margin) dynamicStyle.margin = this.margin;
this.width ||= "100%";
this.height ||= "100%";
this.margin ||= "0";

this.css = `
display: flex;
Expand Down Expand Up @@ -219,7 +217,9 @@ class AnuraUI {
return (
<div
style={{
...dynamicStyle,
width: use(this.width),
height: use(this.height),
margin: use(this.margin),
...this.style,
}}
class={this.class}
Expand Down

0 comments on commit 641f47e

Please sign in to comment.