Trudy commited on
Commit
77b652e
·
1 Parent(s): 3ce70e2

styling for desktop updated

Browse files
Files changed (1) hide show
  1. pages/index.js +3 -3
pages/index.js CHANGED
@@ -310,8 +310,8 @@ export default function Home() {
310
  />
311
 
312
  <div className="absolute inset-0 top-[57px] sm:top-[73px] overflow-y-auto overscroll-y-contain -webkit-overflow-scrolling-touch">
313
- <div className={`flex flex-col md:flex-row gap-4 max-w-6xl mx-auto pb-20 ${!hasStartedGenerating ? 'justify-center' : ''}`}>
314
- <div className={`w-full md:flex-1 py-12 px-3 ${!hasStartedGenerating ? 'md:max-w-2xl mx-auto' : ''}`}>
315
  <section className="flex flex-col bg-gray-100 rounded-2xl p-4">
316
  <div
317
  {...getRootProps()}
@@ -437,7 +437,7 @@ export default function Home() {
437
  </div>
438
 
439
  {hasStartedGenerating && (
440
- <div className="w-full md:flex-1 py-4 md:py-20 px-3 animate-slide-in">
441
  {loading ? (
442
  // Loading skeletons for code previews
443
  Array(concurrentRequests).fill().map((_, index) => (
 
310
  />
311
 
312
  <div className="absolute inset-0 top-[57px] sm:top-[73px] overflow-y-auto overscroll-y-contain -webkit-overflow-scrolling-touch">
313
+ <div className={`flex flex-col md:flex-row gap-4 max-w-7xl mx-auto pb-20 ${!hasStartedGenerating ? 'justify-center' : ''} md:h-[calc(100vh-73px)] md:overflow-hidden`}>
314
+ <div className={`w-full md:w-6/12 py-4 md:py-12 px-3 ${!hasStartedGenerating ? 'md:max-w-2xl mx-auto' : ''}`}>
315
  <section className="flex flex-col bg-gray-100 rounded-2xl p-4">
316
  <div
317
  {...getRootProps()}
 
437
  </div>
438
 
439
  {hasStartedGenerating && (
440
+ <div className="w-full md:w-6/12 py-4 md:py-12 px-3 animate-slide-in md:overflow-y-auto md:h-full">
441
  {loading ? (
442
  // Loading skeletons for code previews
443
  Array(concurrentRequests).fill().map((_, index) => (