ikraamkb commited on
Commit
84bb363
Β·
verified Β·
1 Parent(s): 27d8577

Update static/appS.js

Browse files
Files changed (1) hide show
  1. 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.maxWidth = "250px";
86
- img.style.borderRadius = "8px";
87
- img.style.marginBottom = "5px";
 
 
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}`;