@@ -408,8 +408,6 @@ extension PromptToCodePanelView {
408408 ScrollView {
409409 WithPerceptionTracking {
410410 VStack ( spacing: 0 ) {
411- Spacer ( minLength: 56 )
412-
413411 VStack ( spacing: 0 ) {
414412 let language = store. promptToCodeState. source. language
415413 let isAttached = store. promptToCodeState. isAttachedToTarget
@@ -420,10 +418,6 @@ extension PromptToCodePanelView {
420418 action: \. snippetPanel
421419 ) ) { snippetStore in
422420 WithPerceptionTracking {
423- if snippetStore. id != lastId {
424- Divider ( )
425- }
426-
427421 SnippetPanelView (
428422 store: snippetStore,
429423 language: language,
@@ -432,14 +426,19 @@ extension PromptToCodePanelView {
432426 isAttached: isAttached,
433427 isGenerating: isGenerating
434428 )
429+
430+ if snippetStore. id != lastId {
431+ Divider ( )
432+ }
435433 }
436434 }
437435 }
436+
437+ Spacer ( minLength: 56 )
438438 }
439439 }
440440 }
441441 . background ( codeBackgroundColor)
442- . scaleEffect ( x: 1 , y: - 1 , anchor: . center)
443442 }
444443 }
445444
@@ -454,20 +453,20 @@ extension PromptToCodePanelView {
454453 var body : some View {
455454 WithPerceptionTracking {
456455 VStack ( spacing: 0 ) {
457- ErrorMessage ( store: store)
458- DescriptionContent ( store: store, codeForegroundColor: codeForegroundColor)
459- CodeContent (
460- store: store,
461- language: language,
462- isGenerating: isGenerating,
463- codeForegroundColor: codeForegroundColor
464- )
465456 SnippetTitleBar (
466457 store: store,
467458 language: language,
468459 codeForegroundColor: codeForegroundColor,
469460 isAttached: isAttached
470461 )
462+ CodeContent (
463+ store: store,
464+ language: language,
465+ isGenerating: isGenerating,
466+ codeForegroundColor: codeForegroundColor
467+ )
468+ DescriptionContent ( store: store, codeForegroundColor: codeForegroundColor)
469+ ErrorMessage ( store: store)
471470 }
472471 }
473472 }
@@ -494,7 +493,6 @@ extension PromptToCodePanelView {
494493 CopyCodeButton ( store: store)
495494 }
496495 . padding ( . leading, 8 )
497- . scaleEffect ( x: 1 , y: - 1 , anchor: . center)
498496 }
499497 }
500498 }
@@ -527,7 +525,6 @@ extension PromptToCodePanelView {
527525 . foregroundColor ( . red)
528526 . padding ( . horizontal, 8 )
529527 . padding ( . vertical, 4 )
530- . scaleEffect ( x: 1 , y: - 1 , anchor: . center)
531528 }
532529 }
533530 }
@@ -549,7 +546,6 @@ extension PromptToCodePanelView {
549546 . padding ( . horizontal)
550547 . padding ( . vertical, 4 )
551548 . frame ( maxWidth: . infinity)
552- . scaleEffect ( x: 1 , y: - 1 , anchor: . center)
553549 }
554550 }
555551 }
@@ -599,13 +595,11 @@ extension PromptToCodePanelView {
599595 . foregroundStyle ( . secondary)
600596 . padding ( . horizontal, 8 )
601597 . padding ( . vertical, 4 )
602- . scaleEffect ( x: 1 , y: - 1 , anchor: . center)
603598 } else {
604599 Text ( " Enter your requirements to generate code. " )
605600 . foregroundStyle ( . secondary)
606601 . padding ( . horizontal, 8 )
607602 . padding ( . vertical, 4 )
608- . scaleEffect ( x: 1 , y: - 1 , anchor: . center)
609603 }
610604 }
611605 }
@@ -636,7 +630,6 @@ extension PromptToCodePanelView {
636630 skipLastOnlyRemovalSection: !presentAllContent
637631 )
638632 . frame ( maxWidth: CGFloat . infinity)
639- . scaleEffect ( x: 1 , y: - 1 , anchor: UnitPoint . center)
640633 }
641634 }
642635 }
0 commit comments