linguabot commited on
Commit
f6871e1
·
verified ·
1 Parent(s): ffd3124

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. client/src/pages/TutorialTasks.tsx +4 -4
client/src/pages/TutorialTasks.tsx CHANGED
@@ -887,12 +887,12 @@ const TutorialTasks: React.FC = () => {
887
  withPreservedCardOffset(taskId, () => {
888
  setSubmitting({ ...submitting, [taskId]: false });
889
  });
890
- // release after a few frames to let Safari settle layout
891
- requestAnimationFrame(() => requestAnimationFrame(() => requestAnimationFrame(() => {
892
  unlockListHeight();
893
  unlockCardHeightById(taskId);
894
  unlockGridHeightById(taskId);
895
- })));
896
  setMutatingTaskId(null);
897
  }
898
  };
@@ -2283,7 +2283,7 @@ const TutorialTasks: React.FC = () => {
2283
  expandedSections[task._id]
2284
  ? 'max-h-none overflow-visible'
2285
  : 'max-h-0 overflow-hidden'
2286
- }`} style={{ contain: 'layout paint size' }}>
2287
  {userSubmissions[task._id].map((submission, index) => (
2288
  <div key={submission._id} className="bg-white rounded-lg p-3 border border-stone-200 flex flex-col justify-between h-full">
2289
  <div className="flex items-center justify-between mb-2">
 
887
  withPreservedCardOffset(taskId, () => {
888
  setSubmitting({ ...submitting, [taskId]: false });
889
  });
890
+ // release after a couple frames to let DOM settle
891
+ requestAnimationFrame(() => requestAnimationFrame(() => {
892
  unlockListHeight();
893
  unlockCardHeightById(taskId);
894
  unlockGridHeightById(taskId);
895
+ }));
896
  setMutatingTaskId(null);
897
  }
898
  };
 
2283
  expandedSections[task._id]
2284
  ? 'max-h-none overflow-visible'
2285
  : 'max-h-0 overflow-hidden'
2286
+ }`}>
2287
  {userSubmissions[task._id].map((submission, index) => (
2288
  <div key={submission._id} className="bg-white rounded-lg p-3 border border-stone-200 flex flex-col justify-between h-full">
2289
  <div className="flex items-center justify-between mb-2">