deepak191z commited on
Commit
a80c6f1
·
verified ·
1 Parent(s): 1ee1406

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +8 -5
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
- <div class="flex space-x-2">
209
- <input type="text" class="column-input flex-1 px-3 py-2 border rounded-md" placeholder="Column name">
210
- <button onclick="removeColumn(this)" class="bg-red-500 text-white px-2 py-1 rounded hover:bg-red-600">X</button>
211
- </div>
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
  }