Skip to content

Commit 02a37b8

Browse files
author
asheesh.maheshwari
committed
Fixed Camera and Output positioning
1 parent e682dc2 commit 02a37b8

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

ComputerVisionSamples/Pages/Home.razor

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -164,52 +164,46 @@
164164
<style>
165165
.options-container {
166166
height: 100vh;
167-
padding: 5px;
167+
padding: 0; /* Remove padding from the container */
168168
background-color: black;
169+
margin: 0; /* Remove margin from the container */
169170
}
170171
171172
.container {
172173
display: flex;
173174
width: 100%;
174-
height: 100vh;
175-
padding: 5px;
175+
height: 100%;
176+
padding: 0; /* Remove padding from the container */
176177
background-color: black;
177178
}
178179
179-
.container.vertical {
180-
flex-direction: column; /* Stack vertically */
181-
}
180+
.container.vertical {
181+
flex-direction: column; /* Stack vertically */
182+
}
182183
183-
.container.horizontal {
184-
flex-direction: row; /* Stack horizontally */
185-
}
184+
.container.horizontal {
185+
flex-direction: row; /* Stack horizontally */
186+
}
186187
187188
188-
.video-container {
189-
flex: 1;
190-
background-color: black;
191-
display: flex;
192-
align-items: center;
193-
justify-content: center;
194-
position: relative;
195-
}
196-
197-
.output-container {
198-
flex: 1;
189+
.video-container, .output-container {
199190
background-color: black;
200191
display: flex;
201192
align-items: center;
202193
justify-content: center;
203194
position: relative;
195+
width: 100%; /* Ensure both containers take full width */
196+
margin: 20px 0; /* Add vertical margins (top and bottom) */
204197
}
205198
206199
.output-image {
207200
width: 100%;
208-
height: 100%;
201+
height: auto; /* Maintain aspect ratio */
209202
object-fit: contain;
210203
}
211204
212205
206+
213207
.settings-panel {
214208
position: absolute;
215209
top: 50px;
@@ -228,7 +222,7 @@
228222
position: absolute;
229223
top: 10px;
230224
width: 100%;
231-
padding-right: 50px;
225+
padding-right: 10px;
232226
padding-bottom: 5px;
233227
padding-left: 10px;
234228
}

0 commit comments

Comments
 (0)