From f6141b0047dfdc03a76f3ca80819feed95a515d5 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 20 Feb 2025 21:11:43 -0500 Subject: [PATCH] center and fit modal --- .../centerpiece/20230108_112718.jpg}.txt | 2 +- gallery/centerpiece/index.html | 112 +++++++++++------- gallery/centerpiece/updateGallery.sh | 104 +++++++++------- gallery/classic/index.html | 52 ++++++-- gallery/classic/updateGallery.sh | 39 ++++-- gallery/organic/index.html | 56 +++++++-- gallery/organic/updateGallery.sh | 41 +++++-- gallery/sculpture/index.html | 48 ++++++-- gallery/sculpture/updateGallery.sh | 41 +++++-- 9 files changed, 343 insertions(+), 152 deletions(-) diff --git a/assets/pics/gallery/centerpiece/20230108_112718.jpg}.txt b/assets/pics/gallery/centerpiece/20230108_112718.jpg}.txt index 8b13789..11613ce 100644 --- a/assets/pics/gallery/centerpiece/20230108_112718.jpg}.txt +++ b/assets/pics/gallery/centerpiece/20230108_112718.jpg}.txt @@ -1 +1 @@ - +Cocktail Arrangements diff --git a/gallery/centerpiece/index.html b/gallery/centerpiece/index.html index f494642..4da8d92 100644 --- a/gallery/centerpiece/index.html +++ b/gallery/centerpiece/index.html @@ -56,16 +56,25 @@ } .modal-image { - max-width: 90vw; - max-height: 90vh; - display: block; - margin: 0 auto; - border-radius: 10px; - max-width: 90vw; - max-height: 90vh; - overflow: clip; + width: auto; + height: auto; + max-width: 90vw; + max-height: 90vh; + object-fit: contain; /* Ensures the whole image is visible without cropping */ + display: block; } - +.modal-card { + width: auto; + max-width: 90vw; /* Ensures the modal is responsive */ + max-height: 90vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + background: transparent; /* Keeps the background consistent */ + overflow: hidden; + + } .modal-content { overflow-y: none; max-height: 95vh; @@ -77,8 +86,18 @@ background-color: transparent !important; } .modal-card-body{ - overflow: clip !important; + display: flex; + justify-content: center; + align-items: center; + max-width: 100%; + max-height: 100%; + overflow: hidden; } + body.modal-open { + overflow: hidden; +} +.delete{ +margin-left: 10px;} @@ -120,19 +139,19 @@