Skip to content

Commit e7f965f

Browse files
Merge pull request #683 from Shashank-8p/fix/issue-616-modal-close-ui
fix(ui): Resolves Issue #616 by safely anchoring the close button wit…
2 parents b83c9a6 + 4d8131a commit e7f965f

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

web-app/css/styles.css

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,34 +1969,40 @@ body {
19691969
max-width: 900px;
19701970
width: 90%;
19711971
max-height: 85vh;
1972-
overflow-y: auto;
1973-
overflow-x: hidden;
1972+
display: flex;
1973+
flex-direction: column;
19741974
position: relative;
19751975
animation: slideUp 0.3s ease;
19761976
box-shadow: var(--shadow-modal);
19771977
border: 1px solid var(--border-color);
19781978
margin: auto;
1979+
/* overflow removed to stop clipping */
19791980
}
19801981

19811982
.modal-close {
19821983
position: absolute;
1983-
top: 1rem;
1984-
right: 1rem;
1984+
top: 1.5rem;
1985+
right: 1.5rem;
19851986
background: var(--danger-color);
19861987
color: var(--on-accent);
19871988
border: none;
1988-
width: 40px;
1989-
height: 40px;
1989+
width: 36px;
1990+
height: 36px;
19901991
border-radius: 50%;
19911992
font-size: 1.5rem;
19921993
cursor: pointer;
19931994
transition: var(--transition);
1995+
z-index: 100; /* Forces button above inner content */
1996+
display: flex;
1997+
align-items: center;
1998+
justify-content: center;
1999+
line-height: 1;
2000+
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
19942001
}
19952002

19962003
.modal-close:hover {
19972004
transform: scale(1.1) rotate(90deg);
19982005
}
1999-
20002006
/* ── reused section placeholder ── */
20012007

20022008
/* Animations */

0 commit comments

Comments
 (0)