Skip to content

Commit

Permalink
Fix close button
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessina committed Oct 18, 2024
1 parent 7c7263d commit 76ef343
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 59 deletions.
2 changes: 1 addition & 1 deletion src/ui/IframeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const IframeDialog = forwardRef<HTMLIFrameElement, IframeModalProps>(
if (!isModal) {
return isDialogOpen ? (
<div id="nfw-connect-iframe-container" className="nfw-iframe-container">
<X onClick={handleDialogClose} />
<X onClick={handleDialogClose} className="nfw-close-button" />
{iframeElement}
</div>
) : null;
Expand Down
7 changes: 7 additions & 0 deletions src/ui/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,10 @@
height: 100%;
border: none;
}

.nfw-close-button {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}
66 changes: 8 additions & 58 deletions src/ui/styles.output.css
Original file line number Diff line number Diff line change
Expand Up @@ -645,23 +645,10 @@ body {
z-index: 50;
}

.z-10 {
z-index: 10;
}

.mx-auto {
margin-left: auto;
margin-right: auto;
}

.mt-24 {
margin-top: 6rem;
}

.mt-4 {
margin-top: 1rem;
}

.flex {
display: flex;
}
Expand All @@ -674,10 +661,6 @@ body {
display: none;
}

.h-2 {
height: 0.5rem;
}

.h-4 {
height: 1rem;
}
Expand All @@ -686,38 +669,10 @@ body {
height: auto;
}

.h-full {
height: 100%;
}

.h-\[200px\] {
height: 200px;
}

.h-\[500px\] {
height: 500px;
}

.h-\[60\%\] {
height: 60%;
}

.h-\[70\%\] {
height: 70%;
}

.max-h-\[700px\] {
max-height: 700px;
}

.w-4 {
width: 1rem;
}

.w-\[100px\] {
width: 100px;
}

.w-\[375px\] {
width: 375px;
}
Expand Down Expand Up @@ -752,10 +707,6 @@ body {
overflow: hidden;
}

.rounded-full {
border-radius: 9999px;
}

.rounded-sm {
border-radius: calc(var(--radius) - 4px);
}
Expand All @@ -777,14 +728,6 @@ body {
background-color: rgb(0 0 0 / 0.8);
}

.bg-muted {
background-color: hsl(var(--muted));
}

.p-0 {
padding: 0px;
}

.opacity-70 {
opacity: 0.7;
}
Expand Down Expand Up @@ -845,6 +788,13 @@ body {
border: none;
}

.nfw-close-button {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}

.hover\:opacity-100:hover {
opacity: 1;
}
Expand Down Expand Up @@ -936,4 +886,4 @@ body {
.sm\:rounded-lg {
border-radius: var(--radius);
}
}
}

0 comments on commit 76ef343

Please sign in to comment.