Spaces:
Running
Running
Update static/appS.js
Browse files- static/appS.js +7 -4
static/appS.js
CHANGED
@@ -79,12 +79,15 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
79 |
filePreviewBubble.className = "file-preview-bubble bubble right";
|
80 |
filePreviewBubble.style.display = "flex";
|
81 |
filePreviewBubble.style.flexDirection = "column";
|
82 |
-
|
|
|
83 |
const img = document.createElement("img");
|
84 |
img.src = e.target.result;
|
85 |
-
img.style.
|
86 |
-
img.style.
|
87 |
-
img.style.
|
|
|
|
|
88 |
|
89 |
const text = document.createElement("span");
|
90 |
text.textContent = `π Selected image: ${file.name}`;
|
|
|
79 |
filePreviewBubble.className = "file-preview-bubble bubble right";
|
80 |
filePreviewBubble.style.display = "flex";
|
81 |
filePreviewBubble.style.flexDirection = "column";
|
82 |
+
filePreviewBubble.style.maxWidth = "50%";
|
83 |
+
|
84 |
const img = document.createElement("img");
|
85 |
img.src = e.target.result;
|
86 |
+
img.style.width = "100%";
|
87 |
+
img.style.height = "200px"; // You can adjust the height if you want
|
88 |
+
img.style.objectFit = "cover"; // Makes it fill nicely
|
89 |
+
img.style.borderRadius = "10px";
|
90 |
+
img.style.marginBottom = "8px";
|
91 |
|
92 |
const text = document.createElement("span");
|
93 |
text.textContent = `π Selected image: ${file.name}`;
|