aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswa Kalyan Bhuyan <[email protected]> 2025-05-03 21:06:50 +0530
committerLibravatarLibravatar Biswa Kalyan Bhuyan <[email protected]> 2025-05-03 21:06:50 +0530
commit87966dec8a81e9373e3600799f7c7d91c3bedb86 (patch)
tree45786a22e9ab02641522cbe89e4bfe0f80b7267c
parentca5fc8059862bfc7203490cbced5088c47b094b7 (diff)
downloadchronos-87966dec8a81e9373e3600799f7c7d91c3bedb86.tar.gz
chronos-87966dec8a81e9373e3600799f7c7d91c3bedb86.tar.bz2
chronos-87966dec8a81e9373e3600799f7c7d91c3bedb86.zip
fix: updated little ui
-rw-r--r--static/js/main.js17
1 files changed, 14 insertions, 3 deletions
diff --git a/static/js/main.js b/static/js/main.js
index d67493c..1617be2 100644
--- a/static/js/main.js
+++ b/static/js/main.js
@@ -1010,6 +1010,7 @@ function ensureModalStyles() {
transform: translateY(-20px);
transition: transform 0.3s ease;
animation: modalFadeIn 0.3s forwards;
+ position: relative; /* Add positioning context */
}
.modal.show .modal-content {
@@ -1022,19 +1023,23 @@ function ensureModalStyles() {
}
.close-button {
+ position: absolute;
+ top: 10px;
+ right: 15px;
color: #aaa;
- float: right;
font-size: 28px;
font-weight: bold;
- margin-top: -10px;
cursor: pointer;
transition: color 0.3s ease;
+ line-height: 20px;
+ margin: 0;
+ padding: 0;
+ z-index: 10;
}
.close-button:hover {
color: #FDCFF3;
text-decoration: none;
- cursor: pointer;
}
.chart-modal-content {
@@ -1047,6 +1052,12 @@ function ensureModalStyles() {
height: 400px;
margin: 20px 0;
}
+
+ /* Add more space at the top of modal content for close button */
+ .chart-modal-content h3 {
+ margin-top: 10px;
+ padding-right: 30px; /* Make room for the close button */
+ }
`;
// Add the styles to the page