Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
@@ -205,11 +205,14 @@ function addColumn() {
|
|
205 |
const container = document.getElementById('columnInputs');
|
206 |
const div = document.createElement('div');
|
207 |
div.innerHTML = `
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
|
|
|
|
|
|
213 |
container.appendChild(div);
|
214 |
updatePreviews();
|
215 |
}
|
|
|
205 |
const container = document.getElementById('columnInputs');
|
206 |
const div = document.createElement('div');
|
207 |
div.innerHTML = `
|
208 |
+
<div class="flex space-x-3 sm:space-x-3">
|
209 |
+
<input type="text" class="column-input input-field flex-1 px-3 sm:px-4 py-2 rounded-lg" placeholder="Column name (e.g., Category)" value="meaning">
|
210 |
+
<button onclick="removeColumn(this)" class="delete-btn btn bg-red-600 text-white p-2 rounded-lg">
|
211 |
+
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
212 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
|
213 |
+
</svg>
|
214 |
+
</button>
|
215 |
+
</div> `;
|
216 |
container.appendChild(div);
|
217 |
updatePreviews();
|
218 |
}
|