MidouEmail commited on
Commit
90bfe7d
·
verified ·
1 Parent(s): 289761f

now the text input is so much better but the heading text still hsave problem because still have some hover or something that cover the text so user dont see what he type just after finish writing, but for other text input we dont have this problem.

Browse files
Files changed (1) hide show
  1. index.html +14 -6
index.html CHANGED
@@ -37,10 +37,10 @@
37
  border-radius: 4px;
38
  }
39
  .editable:hover {
40
- background: rgba(255, 255, 255, 0.05);
41
  border-radius: 4px;
42
  }
43
- .editable:empty:before {
44
  content: attr(data-placeholder);
45
  color: rgba(255, 255, 255, 0.6);
46
  }
@@ -50,12 +50,18 @@
50
  background: rgba(0, 0, 0, 0.95);
51
  border: 1px solid rgba(255, 255, 255, 0.2);
52
  border-radius: 8px;
53
- padding: 12px;
54
  z-index: 1000;
55
- min-width: 220px;
 
 
56
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
 
 
 
 
57
  }
58
- .social-option {
59
  display: flex;
60
  align-items: center;
61
  padding: 8px 12px;
@@ -135,7 +141,7 @@
135
  <button id="addSocialButton" class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-full text-sm transition">
136
  + Add Social Media
137
  </button>
138
- <div id="socialDropdown" class="social-dropdown mt-2">
139
  <a class="social-option" data-platform="instagram">
140
  <i data-feather="instagram"></i> Instagram
141
  </a>
@@ -256,6 +262,7 @@
256
  if (this.textContent === this.getAttribute('data-placeholder')) {
257
  this.textContent = '';
258
  }
 
259
  });
260
 
261
  // Restore placeholder if empty when blurring
@@ -263,6 +270,7 @@
263
  if (this.textContent.trim() === '') {
264
  this.textContent = '';
265
  }
 
266
  });
267
  });
268
  function addSocialIcon(platform, handle) {
 
37
  border-radius: 4px;
38
  }
39
  .editable:hover {
40
+ background: transparent;
41
  border-radius: 4px;
42
  }
43
+ .editable:empty:before {
44
  content: attr(data-placeholder);
45
  color: rgba(255, 255, 255, 0.6);
46
  }
 
50
  background: rgba(0, 0, 0, 0.95);
51
  border: 1px solid rgba(255, 255, 255, 0.2);
52
  border-radius: 8px;
53
+ padding: 8px;
54
  z-index: 1000;
55
+ min-width: 200px;
56
+ max-height: 200px;
57
+ overflow-y: auto;
58
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
59
+ bottom: 100%;
60
+ left: 50%;
61
+ transform: translateX(-50%);
62
+ margin-bottom: 8px;
63
  }
64
+ .social-option {
65
  display: flex;
66
  align-items: center;
67
  padding: 8px 12px;
 
141
  <button id="addSocialButton" class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-full text-sm transition">
142
  + Add Social Media
143
  </button>
144
+ <div id="socialDropdown" class="social-dropdown">
145
  <a class="social-option" data-platform="instagram">
146
  <i data-feather="instagram"></i> Instagram
147
  </a>
 
262
  if (this.textContent === this.getAttribute('data-placeholder')) {
263
  this.textContent = '';
264
  }
265
+ this.style.background = 'transparent';
266
  });
267
 
268
  // Restore placeholder if empty when blurring
 
270
  if (this.textContent.trim() === '') {
271
  this.textContent = '';
272
  }
273
+ this.style.background = 'transparent';
274
  });
275
  });
276
  function addSocialIcon(platform, handle) {