BraydenMoore commited on
Commit
f0a6578
·
1 Parent(s): ed76384

Update styling

Browse files
Files changed (2) hide show
  1. web/static/script.js +1 -0
  2. web/static/styles.css +4 -11
web/static/script.js CHANGED
@@ -10,6 +10,7 @@ document.addEventListener("DOMContentLoaded", () => {
10
 
11
  const imageElement = document.createElement("img");
12
  imageElement.src = "static/loading.gif";
 
13
  predictedImagesContainer.appendChild(imageElement);
14
 
15
  const selectedFeature = featureSelect.value;
 
10
 
11
  const imageElement = document.createElement("img");
12
  imageElement.src = "static/loading.gif";
13
+ imageElement.style.height = "100px";
14
  predictedImagesContainer.appendChild(imageElement);
15
 
16
  const selectedFeature = featureSelect.value;
web/static/styles.css CHANGED
@@ -22,7 +22,7 @@ body {
22
  .dropzone {
23
  margin-top: 20px;
24
  width: 95%;
25
- border: 2px solid #000000;
26
  display: flex;
27
  justify-content: center;
28
  align-items: center;
@@ -35,6 +35,8 @@ body {
35
  width: 95%;
36
  border: 2px solid #000000;
37
  display: block;
 
 
38
  margin: 20px auto; /* Auto margins for horizontal centering */
39
  }
40
 
@@ -46,14 +48,6 @@ body {
46
  align-items: center;
47
  }
48
 
49
- #predicted-images {
50
- width: 90%;
51
- display: grid;
52
- row-gap: 1%;
53
- column-gap: 1%;
54
- grid-template-columns: repeat(1, 1fr);
55
- }
56
-
57
  /* The container for the predicted images */
58
  #predicted-images {
59
  display: grid;
@@ -67,7 +61,7 @@ body {
67
 
68
  /* The predicted image */
69
  #predicted-images img {
70
- width: 100%;
71
  height: auto;
72
  display: block;
73
  align-items: center;
@@ -163,7 +157,6 @@ visibility: visible; /* Show the tooltip on image hover */
163
  }
164
 
165
  .dropzone {
166
- min-height: 500px;
167
  width: 48%;
168
  }
169
 
 
22
  .dropzone {
23
  margin-top: 20px;
24
  width: 95%;
25
+ border: 2px dashed #000000;
26
  display: flex;
27
  justify-content: center;
28
  align-items: center;
 
35
  width: 95%;
36
  border: 2px solid #000000;
37
  display: block;
38
+ justify-content: center;
39
+ align-items: center;
40
  margin: 20px auto; /* Auto margins for horizontal centering */
41
  }
42
 
 
48
  align-items: center;
49
  }
50
 
 
 
 
 
 
 
 
 
51
  /* The container for the predicted images */
52
  #predicted-images {
53
  display: grid;
 
61
 
62
  /* The predicted image */
63
  #predicted-images img {
64
+ width: 90%;
65
  height: auto;
66
  display: block;
67
  align-items: center;
 
157
  }
158
 
159
  .dropzone {
 
160
  width: 48%;
161
  }
162