Skip to content

Commit

Permalink
Make modal box responsive top.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaijira committed Dec 21, 2024
1 parent 9e7b322 commit ff6765a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/css.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub static MODAL_STYLE: LazyLock<String> = LazyLock::new(|| {
class! {
.style("position", "fixed")
.style("left", "0")
.style("top", "35%")
.style("top", "0")
.style("width", "100%")
.style("height", "100%")
.style("z-index", "1")
Expand All @@ -21,6 +21,8 @@ pub static MODAL_STYLE: LazyLock<String> = LazyLock::new(|| {

pub static MODAL_CONTENT_STYLE: LazyLock<String> = LazyLock::new(|| {
class! {
.style("position", "relative")
.style("top", "35%")
.style("padding", "15px")
.style("background", "#eee")
.style("border-radius", "5px")
Expand Down

0 comments on commit ff6765a

Please sign in to comment.