From 7f4dac6038417790550ed5f88a5c9ba37b01e209 Mon Sep 17 00:00:00 2001
From: divyanshu_Kumar <154233802+d1vyanshu-kumar@users.noreply.github.com>
Date: Fri, 17 Jan 2025 16:44:18 +0530
Subject: [PATCH] Webpage Layout issue resolved
---
.idea/.gitignore | 8 ++++
.idea/GDB-UI.iml | 9 ++++
.idea/inspectionProfiles/Project_Default.xml | 6 +++
.idea/material_theme_project_new.xml | 12 +++++
.idea/misc.xml | 7 +++
.idea/modules.xml | 8 ++++
.idea/vcs.xml | 6 +++
.../src/components/Breakpoint/Breakpoint.css | 27 ++++++++++-
.../src/components/Breakpoint/Breakpoint.jsx | 2 +-
.../components/DebugHeader/DebugHeader.css | 48 +++++++++++++++++--
webapp/src/components/Footer/Footer.css | 5 +-
webapp/src/components/Functions/Functions.css | 12 +++--
.../FunctionsBottom/FunctionsBottom.css | 2 +
.../GdbComponents/GdbComponents.css | 13 +++++
webapp/src/components/Stack/Stack.css | 19 ++++----
.../components/StackBottom/StackBottom.css | 8 ++--
webapp/src/components/Terminal/Terminal.css | 8 ++--
webapp/src/index.css | 5 +-
webapp/src/pages/Debug/Debug.css | 12 +++--
19 files changed, 186 insertions(+), 31 deletions(-)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/GDB-UI.iml
create mode 100644 .idea/inspectionProfiles/Project_Default.xml
create mode 100644 .idea/material_theme_project_new.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/GDB-UI.iml b/.idea/GDB-UI.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/GDB-UI.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..03d9549
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/material_theme_project_new.xml b/.idea/material_theme_project_new.xml
new file mode 100644
index 0000000..e5691ca
--- /dev/null
+++ b/.idea/material_theme_project_new.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..62269df
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..c692ec5
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/webapp/src/components/Breakpoint/Breakpoint.css b/webapp/src/components/Breakpoint/Breakpoint.css
index 0854cf5..2166783 100644
--- a/webapp/src/components/Breakpoint/Breakpoint.css
+++ b/webapp/src/components/Breakpoint/Breakpoint.css
@@ -3,8 +3,12 @@
flex-direction: column;
align-items: flex-start;
gap: 10px;
+ position: relative;
+ top: -100px;
}
.add-breakpoint {
+ position: absolute;
+ right:-400px;
display: flex;
padding: 6px 12px;
align-items: flex-start;
@@ -13,6 +17,9 @@
}
.lower-breakpoint {
+ position: absolute; /* Make it independent of other components */
+ right: -460px; /* Adjust this value for desired placement */
+ top: 50px; /* Adjust this to control vertical positioning */
display: flex;
height: 177px;
padding: 7px 10px;
@@ -20,9 +27,10 @@
align-items: flex-start;
gap: 9px;
border: 1px solid var(--Gray-2, #4f4f4f);
- /* background: #1e1e1e; */
+ margin-top: 0; /* Disable margin if using absolute positioning */
}
+
.line-breakpoint {
display: flex;
align-items: center;
@@ -38,3 +46,20 @@
border-radius: 2px;
background: var(--primary-orange, #e88f40);
}
+
+
+/* Media Query for screens smaller than 768px */
+@media (max-width: 768px) {
+
+ .add-breakpoint {
+ position: static; /* Remove absolute positioning for natural stacking */
+ width: auto; /* Adjust width to content size */
+ align-self: center; /* Center the button in the layout */
+ }
+
+ .lower-breakpoint {
+ position: static; /* Remove absolute positioning for stacking */
+ width: auto; /* Adjust width to fit content */
+ align-self: center; /* Center the element in the layout */
+ }
+}
\ No newline at end of file
diff --git a/webapp/src/components/Breakpoint/Breakpoint.jsx b/webapp/src/components/Breakpoint/Breakpoint.jsx
index e556444..e30e907 100644
--- a/webapp/src/components/Breakpoint/Breakpoint.jsx
+++ b/webapp/src/components/Breakpoint/Breakpoint.jsx
@@ -56,7 +56,7 @@ const Breakpoint = () => {
onChange={(e) => setBreakFunction(e.target.value)}
/>
-