From c26412319c04b523f5cae7b515618cab1d62b672 Mon Sep 17 00:00:00 2001 From: sakshipal80 Date: Fri, 1 Aug 2025 11:07:33 +0530 Subject: [PATCH 1/5] make form elements responsive to prevent overflow on mobile --- style.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/style.css b/style.css index 4ada5d8..3f7cc5f 100644 --- a/style.css +++ b/style.css @@ -34,6 +34,11 @@ body { gap: 1.5rem; max-width: 1100px; margin: 0 auto; + + + width: 100%; + max-width: 100%; + overflow-x: hidden; } .form-section, .preview-section { @@ -43,6 +48,10 @@ body { box-shadow: 0 2px 8px rgba(0,0,0,0.07); padding: 1.5rem; min-width: 320px; + + width: 100%; + max-width: 100%; + box-sizing: border-box; } .form-section { From da71057f5888b3354ee7537574a06c774b18bd74 Mon Sep 17 00:00:00 2001 From: sakshipal80 Date: Fri, 1 Aug 2025 11:13:41 +0530 Subject: [PATCH 2/5] recover --- style.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/style.css b/style.css index 3f7cc5f..a568b44 100644 --- a/style.css +++ b/style.css @@ -36,9 +36,9 @@ body { margin: 0 auto; - width: 100%; + /* width: 100%; max-width: 100%; - overflow-x: hidden; + overflow-x: hidden; */ } .form-section, .preview-section { @@ -49,9 +49,9 @@ body { padding: 1.5rem; min-width: 320px; - width: 100%; + /* width: 100%; max-width: 100%; - box-sizing: border-box; + box-sizing: border-box; */ } .form-section { From 2892b03472007da634c9dd49b2e747d049337f44 Mon Sep 17 00:00:00 2001 From: sakshipal80 Date: Fri, 1 Aug 2025 11:25:07 +0530 Subject: [PATCH 3/5] media query applies --- style.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/style.css b/style.css index a568b44..9396e2c 100644 --- a/style.css +++ b/style.css @@ -408,3 +408,22 @@ margin-top: auto; .section { transition: transform 0.2s ease, box-shadow 0.2s ease; } + + + +@media (max-width: 480px) { + input, + textarea { + width: 100%; + max-width: 100%; + box-sizing: border-box; + word-break: break-word; + overflow-wrap: break-word; + } + + .form-section, + .preview-section { + overflow-x: hidden; + } +} + From bda2e06cf8413db33efb42e22193f2cc201d5f37 Mon Sep 17 00:00:00 2001 From: sakshipal80 Date: Fri, 1 Aug 2025 11:27:02 +0530 Subject: [PATCH 4/5] recover --- style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 9396e2c..ea6e967 100644 --- a/style.css +++ b/style.css @@ -411,7 +411,7 @@ margin-top: auto; -@media (max-width: 480px) { +/* @media (max-width: 480px) { input, textarea { width: 100%; @@ -425,5 +425,5 @@ margin-top: auto; .preview-section { overflow-x: hidden; } -} +} */ From 963d01a8b3742912b108e4565363268af9f044c7 Mon Sep 17 00:00:00 2001 From: sakshipal80 Date: Fri, 1 Aug 2025 16:21:46 +0530 Subject: [PATCH 5/5] Improve layout responsiveness --- index.html | 15 +-- style.css | 319 ++++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 263 insertions(+), 71 deletions(-) diff --git a/index.html b/index.html index 1d0dcfa..bd8b441 100644 --- a/index.html +++ b/index.html @@ -240,15 +240,12 @@

Projects

- - - - - + + +
+ + +