Spaces:
Running
Running
the heading text still have same problem, and the dropdown menu box must come on top of the button not under
Browse files- index.html +12 -3
index.html
CHANGED
|
@@ -56,6 +56,8 @@
|
|
| 56 |
background: transparent !important;
|
| 57 |
border: none !important;
|
| 58 |
outline: none !important;
|
|
|
|
|
|
|
| 59 |
}
|
| 60 |
.social-dropdown {
|
| 61 |
display: none;
|
|
@@ -69,10 +71,10 @@
|
|
| 69 |
max-height: 200px;
|
| 70 |
overflow-y: auto;
|
| 71 |
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
| 72 |
-
|
| 73 |
left: 50%;
|
| 74 |
transform: translateX(-50%);
|
| 75 |
-
margin-
|
| 76 |
}
|
| 77 |
.social-option {
|
| 78 |
display: flex;
|
|
@@ -268,7 +270,6 @@
|
|
| 268 |
document.getElementById('socialDropdown').style.display = 'none';
|
| 269 |
});
|
| 270 |
});
|
| 271 |
-
|
| 272 |
// Initialize placeholder functionality
|
| 273 |
document.querySelectorAll('.editable').forEach(editable => {
|
| 274 |
// Clear placeholder text when focusing
|
|
@@ -287,6 +288,14 @@
|
|
| 287 |
this.style.background = 'transparent';
|
| 288 |
});
|
| 289 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 290 |
function addSocialIcon(platform, handle) {
|
| 291 |
const container = document.getElementById('socialIconsContainer');
|
| 292 |
const icon = document.createElement('a');
|
|
|
|
| 56 |
background: transparent !important;
|
| 57 |
border: none !important;
|
| 58 |
outline: none !important;
|
| 59 |
+
z-index: 10;
|
| 60 |
+
position: relative;
|
| 61 |
}
|
| 62 |
.social-dropdown {
|
| 63 |
display: none;
|
|
|
|
| 71 |
max-height: 200px;
|
| 72 |
overflow-y: auto;
|
| 73 |
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
| 74 |
+
bottom: 100%;
|
| 75 |
left: 50%;
|
| 76 |
transform: translateX(-50%);
|
| 77 |
+
margin-bottom: 8px;
|
| 78 |
}
|
| 79 |
.social-option {
|
| 80 |
display: flex;
|
|
|
|
| 270 |
document.getElementById('socialDropdown').style.display = 'none';
|
| 271 |
});
|
| 272 |
});
|
|
|
|
| 273 |
// Initialize placeholder functionality
|
| 274 |
document.querySelectorAll('.editable').forEach(editable => {
|
| 275 |
// Clear placeholder text when focusing
|
|
|
|
| 288 |
this.style.background = 'transparent';
|
| 289 |
});
|
| 290 |
});
|
| 291 |
+
|
| 292 |
+
// Fix for heading text visibility
|
| 293 |
+
document.getElementById('editableName').addEventListener('focus', function() {
|
| 294 |
+
this.style.zIndex = '20';
|
| 295 |
+
});
|
| 296 |
+
document.getElementById('editableName').addEventListener('blur', function() {
|
| 297 |
+
this.style.zIndex = '10';
|
| 298 |
+
});
|
| 299 |
function addSocialIcon(platform, handle) {
|
| 300 |
const container = document.getElementById('socialIconsContainer');
|
| 301 |
const icon = document.createElement('a');
|