Egrigor commited on
Commit
93085bb
·
verified ·
1 Parent(s): 895e15e

how to ensure the video renders beside the chat data column not above it?

Browse files
Files changed (2) hide show
  1. index.html +6 -12
  2. style.css +8 -3
index.html CHANGED
@@ -15,18 +15,17 @@
15
  <a href="/logout" class="btn btn-outline-light btn-sm">Logout</a>
16
  </div>
17
  <div class="row">
18
- <!-- Webcam Column - Now full width -->
19
- <div class="col-12 mb-4">
20
  <div class="text-center">
21
  <h5>Live Webcam</h5>
22
- <img src="{{ url_for('video_feed') }}" class="img-fluid rounded" style="max-height: 600px; width: auto;">
23
  </div>
24
  </div>
25
- </div>
26
- <div class="row">
27
  <!-- Right Column - Highlights and Chat -->
28
  <div class="col-md-4 mb-4">
29
- <div class="sticky-top" style="top: 20px;">
30
  <!-- Biome Display -->
31
  <div class="mb-3 p-2 bg-info bg-opacity-25 rounded text-center">
32
  <strong>Current Biome:</strong> <span id="current-biome">Loading...</span>
@@ -51,12 +50,7 @@
51
  </div>
52
  </div>
53
  </div>
54
-
55
- <!-- Main Content Column - Empty for now -->
56
- <div class="col-md-8">
57
- <!-- Left empty or can be used for other content -->
58
- </div>
59
- </div>
60
  </div>
61
 
62
  <script>
 
15
  <a href="/logout" class="btn btn-outline-light btn-sm">Logout</a>
16
  </div>
17
  <div class="row">
18
+ <!-- Left Column - Webcam -->
19
+ <div class="col-md-8 mb-4">
20
  <div class="text-center">
21
  <h5>Live Webcam</h5>
22
+ <img src="{{ url_for('video_feed') }}" class="img-fluid rounded" style="max-height: 600px; width: 100%;">
23
  </div>
24
  </div>
25
+
 
26
  <!-- Right Column - Highlights and Chat -->
27
  <div class="col-md-4 mb-4">
28
+ <div class="sticky-top" style="top: 20px;">
29
  <!-- Biome Display -->
30
  <div class="mb-3 p-2 bg-info bg-opacity-25 rounded text-center">
31
  <strong>Current Biome:</strong> <span id="current-biome">Loading...</span>
 
50
  </div>
51
  </div>
52
  </div>
53
+ </div>
 
 
 
 
 
54
  </div>
55
 
56
  <script>
style.css CHANGED
@@ -1,8 +1,13 @@
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
4
  }
5
-
6
  h1 {
7
  font-size: 16px;
8
  margin-top: 0;
 
1
+
2
  body {
3
+ padding: 2rem;
4
+ font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
5
+ }
6
+ .img-fluid.rounded {
7
+ max-height: 600px;
8
+ height: 100%;
9
+ object-fit: contain;
10
  }
 
11
  h1 {
12
  font-size: 16px;
13
  margin-top: 0;