hmb HF Staff commited on
Commit
8115d23
·
1 Parent(s): 9d48d79

scroll to ouput

Browse files
Files changed (1) hide show
  1. src/App.svelte +12 -0
src/App.svelte CHANGED
@@ -324,6 +324,18 @@
324
  cleaningSteps = [{ step: `Cleaned all ${numCols} columns and replaced values in the preview.`, accepted: true }];
325
  showSteps = true;
326
  cleaningInProgress = false;
 
 
 
 
 
 
 
 
 
 
 
 
327
  }
328
 
329
  function toggleStep(idx: number) {
 
324
  cleaningSteps = [{ step: `Cleaned all ${numCols} columns and replaced values in the preview.`, accepted: true }];
325
  showSteps = true;
326
  cleaningInProgress = false;
327
+
328
+ // Scroll to results after a short delay to allow rendering
329
+ setTimeout(() => {
330
+ const resultsSection = document.querySelector('.results-card');
331
+ if (resultsSection) {
332
+ resultsSection.scrollIntoView({
333
+ behavior: 'smooth',
334
+ block: 'start',
335
+ inline: 'nearest'
336
+ });
337
+ }
338
+ }, 100);
339
  }
340
 
341
  function toggleStep(idx: number) {