coollsd commited on
Commit
02bbe47
1 Parent(s): 866ab32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -118,8 +118,8 @@ HTML_CONTENT = """
118
 
119
  /* Small Buttons */
120
  .small-btn {
121
- padding: 8px 16px;
122
- font-size: 0.9rem;
123
  font-weight: 500;
124
  background-color: #2a2a2a;
125
  color: #ffffff;
@@ -130,7 +130,7 @@ HTML_CONTENT = """
130
  position: relative;
131
  overflow: hidden;
132
  z-index: 1;
133
- margin-left: 5px;
134
  }
135
 
136
  .small-btn:hover {
@@ -260,6 +260,7 @@ HTML_CONTENT = """
260
 
261
  .link-buttons {
262
  display: flex;
 
263
  flex-wrap: wrap;
264
  margin-top: 10px;
265
  }
@@ -409,6 +410,7 @@ HTML_CONTENT = """
409
  const modal = document.getElementById('embedModal');
410
  const span = document.getElementsByClassName("close")[0];
411
  const embedLinkInput = document.getElementById('embedLink');
 
412
 
413
  fileInput.addEventListener('change', handleFileSelect);
414
 
@@ -419,7 +421,7 @@ HTML_CONTENT = """
419
  }
420
  });
421
 
422
- dropZone.addEventListener('dragover', (e) => {
423
  e.preventDefault();
424
  dropZone.classList.add('drag-over');
425
  });
@@ -459,7 +461,7 @@ HTML_CONTENT = """
459
  if (e.target.files.length > 0) {
460
  const file = e.target.files[0];
461
  fileName.textContent = file.name;
462
- document.getElementById('uploadBtn').style.display = 'inline-block';
463
  }
464
  }
465
 
@@ -467,7 +469,7 @@ HTML_CONTENT = """
467
  progressContainer.innerHTML = '';
468
  progressContainer.style.display = 'block';
469
  loadingSpinner.style.display = 'block';
470
- document.getElementById('uploadBtn').disabled = true;
471
  resultContainer.innerHTML = '';
472
  resultContainer.style.display = 'none';
473
 
@@ -526,8 +528,8 @@ HTML_CONTENT = """
526
  function resetUploadState() {
527
  fileInput.value = '';
528
  fileName.textContent = '';
529
- document.getElementById('uploadBtn').style.display = 'none';
530
- document.getElementById('uploadBtn').disabled = false;
531
  loadingSpinner.style.display = 'none';
532
  }
533
 
 
118
 
119
  /* Small Buttons */
120
  .small-btn {
121
+ padding: 6px 12px;
122
+ font-size: 0.8rem;
123
  font-weight: 500;
124
  background-color: #2a2a2a;
125
  color: #ffffff;
 
130
  position: relative;
131
  overflow: hidden;
132
  z-index: 1;
133
+ margin: 0 2px;
134
  }
135
 
136
  .small-btn:hover {
 
260
 
261
  .link-buttons {
262
  display: flex;
263
+ justify-content: center;
264
  flex-wrap: wrap;
265
  margin-top: 10px;
266
  }
 
410
  const modal = document.getElementById('embedModal');
411
  const span = document.getElementsByClassName("close")[0];
412
  const embedLinkInput = document.getElementById('embedLink');
413
+ const uploadBtn = document.getElementById('uploadBtn');
414
 
415
  fileInput.addEventListener('change', handleFileSelect);
416
 
 
421
  }
422
  });
423
 
424
+ dropZone.addEventListener('dragover', (e) => {
425
  e.preventDefault();
426
  dropZone.classList.add('drag-over');
427
  });
 
461
  if (e.target.files.length > 0) {
462
  const file = e.target.files[0];
463
  fileName.textContent = file.name;
464
+ uploadBtn.style.display = 'inline-block';
465
  }
466
  }
467
 
 
469
  progressContainer.innerHTML = '';
470
  progressContainer.style.display = 'block';
471
  loadingSpinner.style.display = 'block';
472
+ uploadBtn.disabled = true;
473
  resultContainer.innerHTML = '';
474
  resultContainer.style.display = 'none';
475
 
 
528
  function resetUploadState() {
529
  fileInput.value = '';
530
  fileName.textContent = '';
531
+ uploadBtn.style.display = 'none';
532
+ uploadBtn.disabled = false;
533
  loadingSpinner.style.display = 'none';
534
  }
535