Skip to content

Commit

Permalink
Avoid reconnection modal taking up entire screen, not being able to i… (
Browse files Browse the repository at this point in the history
dotnet#3189)

* Avoid reconnection modal taking up entire screen, not being able to interact with page

* add slight padding, shadow

---------

Co-authored-by: Adam Ratzman <adamratzman@microsoft.com>
(cherry picked from commit 87fab1e)
  • Loading branch information
adamint authored and Adam Ratzman committed Apr 8, 2024
1 parent 10f433d commit 0a809f0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Aspire.Dashboard/wwwroot/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,23 @@ h1 {
}

#components-reconnect-modal {
/* avoid making modal take the entire screen dimensions */
inset: unset !important;

/* force modal to be compact, centered, slightly padded, and towards the top */
top: 5% !important;
left: 30% !important;
right: 30% !important;
height: 105px;
padding: 2px;

/* add a slight shadow */
box-shadow: 2px 2px 2px var(--neutral-fill-secondary-rest);

/* avoid modal being see-through */
opacity: 1 !important;

/* ensure sufficient contrast between all elements in the modal and its background */
background-color: var(--reconnection-ui-bg) !important;
}

Expand Down

0 comments on commit 0a809f0

Please sign in to comment.