From 7ad8d86e7f96af3e45335597fd8c6e45394b3869 Mon Sep 17 00:00:00 2001 From: yash Date: Thu, 18 Jul 2024 18:31:31 +0530 Subject: [PATCH] UI Changes --- resources/views/forms/create.blade.php | 59 +++++++------------ resources/views/forms/edit.blade.php | 6 +- .../views/responses/viewResponses.blade.php | 11 ++-- 3 files changed, 30 insertions(+), 46 deletions(-) diff --git a/resources/views/forms/create.blade.php b/resources/views/forms/create.blade.php index 263b814..24f4f45 100644 --- a/resources/views/forms/create.blade.php +++ b/resources/views/forms/create.blade.php @@ -6,6 +6,7 @@ Google-Form-Clone + @@ -15,45 +16,27 @@ -
-
- - - - +
-
-
- - - - -
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
-
+
diff --git a/resources/views/forms/edit.blade.php b/resources/views/forms/edit.blade.php index 59e3489..fb81c0b 100644 --- a/resources/views/forms/edit.blade.php +++ b/resources/views/forms/edit.blade.php @@ -182,10 +182,10 @@ const newPosition = offsetTop + lastQuestion.offsetHeight; if (newPosition + sidebarHeight <= containerHeight) { - sidebar.style.transform = `translateY(${newPosition}px)`; - console.log(`Moving sidebar to: ${newPosition}px`); + sidebar.style.transform = `translateY(${newPosition + 75}px)`; + console.log(`Moving sidebar to: ${newPosition + 75}px`); } else { - sidebar.style.transform = `translateY(${containerHeight - sidebarHeight}px)`; + sidebar.style.transform = `translateY(${containerHeight - sidebarHeight + 75}px)`; console.log(`Moving sidebar to bottom of container`); } } else { diff --git a/resources/views/responses/viewResponses.blade.php b/resources/views/responses/viewResponses.blade.php index a8f075a..6b2df66 100644 --- a/resources/views/responses/viewResponses.blade.php +++ b/resources/views/responses/viewResponses.blade.php @@ -16,9 +16,6 @@
- - Google Forms -

{{ $form->title }} - Responses

@@ -72,7 +69,8 @@ User - Submitted At + Email ID + Submitted Actions @@ -82,6 +80,9 @@ {{ $responseGroup->first()->user->name ?? 'Anonymous' }} + + {{ $responseGroup->first()->user->email ?? 'NA'}} + {{ $responseGroup->first()->created_at->diffForHumans()}} @@ -182,7 +183,7 @@ data: { labels: labels, datasets: [{ - label: '# of Responses', + label: 'Responses', data: data, backgroundColor: backgroundColors, borderColor: backgroundColors.map(color => color.replace('0.5', '1')),