Skip to content

Commit dbe5a24

Browse files
feat: resolved copilot and modal conflicts
1 parent 2612e93 commit dbe5a24

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

src/app/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ export function App(): React.JSX.Element {
319319
</div>
320320

321321
{/* this is the copilot container. the copilot logic is inside the /components/Copilot.tsx */}
322-
<div className="copilot-container">
323-
<CopilotChat />
324-
</div>
322+
323+
<CopilotChat />
324+
325325
</div>
326326
</>
327327
);

src/app/components/Asset/Modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const Modal = ({ onClose, asset }) => {
44
if (!asset) return null;
55

66
return (
7-
<div style={{ position: 'fixed', top: 0, left: 0, right: 0, bottom: 0, backgroundColor: 'rgba(0,0,0,0.5)', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
8-
<div style={{ padding: 20, background: 'white', borderRadius: 5, width: '50%', boxShadow: '0 4px 6px rgba(0,0,0,0.1)' }}>
7+
<div style={{ zIndex:1000, position: 'fixed', top: 0, left: 0, right: 0, bottom: 0, backgroundColor: 'rgba(0,0,0,0.5)', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
8+
<div style={{ zIndex:1005, padding: 20, background: 'white', borderRadius: 5, width: '50%', boxShadow: '0 4px 6px rgba(0,0,0,0.1)' }}>
99
<h2>Snippet Details</h2>
1010
<p>ID: {asset.id}</p>
1111
<p>Name: {asset.name}</p>

src/app/components/Copilot/Copilot.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
/* Container styles */
2+
.copilot-container {
3+
border: 2px solid black;
4+
background-color: #0e1111;
5+
height: 600px;
6+
padding: 20px;
7+
border-radius: 9px;
8+
display: flex;
9+
box-shadow: -4px 4px 5px rgba(0, 0, 0, 0.2);
10+
margin-top: 20px;
11+
}
12+
213
.container {
314
width: -webkit-fill-available;
415
}

src/app/components/Copilot/Copilot.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export function CopilotChat(): React.JSX.Element {
128128
}, []);
129129

130130
return (
131+
<div className="copilot-container">
131132
<div className="container">
132133
<div className="header">
133134
<div>
@@ -152,5 +153,6 @@ export function CopilotChat(): React.JSX.Element {
152153
</div>
153154
</div>
154155
</div>
156+
</div>
155157
);
156158
}

src/app/global.css

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,7 @@ html {
203203
flex-direction: column;
204204
}
205205

206-
.copilot-container {
207-
border: 2px solid black;
208-
background-color: #0e1111;
209-
height: 600px;
210-
padding: 20px;
211-
border-radius: 9px;
212-
display: flex;
213-
box-shadow: -4px 4px 5px rgba(0, 0, 0, 0.2);
214-
margin-top: 20px;
215-
}
206+
216207

217208

218209
/* Common styles for the response formatting body */

0 commit comments

Comments
 (0)