Translsis commited on
Commit
cf6481c
·
verified ·
1 Parent(s): b19286b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +22 -1
index.html CHANGED
@@ -261,13 +261,25 @@
261
  }
262
 
263
  .empty-state {
264
- flex: 1;
 
 
 
265
  display: flex;
266
  flex-direction: column;
267
  align-items: center;
268
  justify-content: center;
269
  color: #aaa;
270
  padding: 50px;
 
 
 
 
 
 
 
 
 
271
  }
272
 
273
  .empty-state svg {
@@ -517,6 +529,12 @@
517
  container.innerHTML = '';
518
  container.appendChild(viewerContainer);
519
 
 
 
 
 
 
 
520
  // Setup scroll tracking with throttle
521
  let scrollTimeout;
522
  viewerContainer.addEventListener('scroll', () => {
@@ -726,6 +744,9 @@
726
  nextPageBtn.style.display = 'none';
727
  zoomControls.style.display = 'none';
728
  activeIndex = -1;
 
 
 
729
  contentContainer.innerHTML = `
730
  <div class="empty-state">
731
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
 
261
  }
262
 
263
  .empty-state {
264
+ position: absolute;
265
+ top: 50%;
266
+ left: 50%;
267
+ transform: translate(-50%, -50%);
268
  display: flex;
269
  flex-direction: column;
270
  align-items: center;
271
  justify-content: center;
272
  color: #aaa;
273
  padding: 50px;
274
+ pointer-events: none;
275
+ }
276
+
277
+ .content:not(:has(.tab-content.active)) .empty-state {
278
+ display: flex;
279
+ }
280
+
281
+ .content:has(.tab-content.active) .empty-state {
282
+ display: none;
283
  }
284
 
285
  .empty-state svg {
 
529
  container.innerHTML = '';
530
  container.appendChild(viewerContainer);
531
 
532
+ // Hide empty state when first PDF loads
533
+ const emptyState = contentContainer.querySelector('.empty-state');
534
+ if (emptyState) {
535
+ emptyState.style.display = 'none';
536
+ }
537
+
538
  // Setup scroll tracking with throttle
539
  let scrollTimeout;
540
  viewerContainer.addEventListener('scroll', () => {
 
744
  nextPageBtn.style.display = 'none';
745
  zoomControls.style.display = 'none';
746
  activeIndex = -1;
747
+
748
+ // Remove all tabs and content
749
+ tabsContainer.innerHTML = '';
750
  contentContainer.innerHTML = `
751
  <div class="empty-state">
752
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">