Update app.py
Browse files
app.py
CHANGED
|
@@ -213,9 +213,9 @@ ui.card(
|
|
| 213 |
const content = document.getElementById('capture-section');
|
| 214 |
|
| 215 |
try {
|
| 216 |
-
// Create a wrapper div with
|
| 217 |
const wrapper = document.createElement('div');
|
| 218 |
-
wrapper.style.
|
| 219 |
wrapper.style.backgroundColor = 'white';
|
| 220 |
|
| 221 |
// Clone the content
|
|
@@ -230,8 +230,8 @@ ui.card(
|
|
| 230 |
scale: 2,
|
| 231 |
useCORS: true,
|
| 232 |
logging: false,
|
| 233 |
-
width: content.offsetWidth +
|
| 234 |
-
height: content.offsetHeight
|
| 235 |
});
|
| 236 |
|
| 237 |
// Remove temporary wrapper
|
|
|
|
| 213 |
const content = document.getElementById('capture-section');
|
| 214 |
|
| 215 |
try {
|
| 216 |
+
// Create a wrapper div with right margin only
|
| 217 |
const wrapper = document.createElement('div');
|
| 218 |
+
wrapper.style.paddingRight = '20px'; // Only right padding
|
| 219 |
wrapper.style.backgroundColor = 'white';
|
| 220 |
|
| 221 |
// Clone the content
|
|
|
|
| 230 |
scale: 2,
|
| 231 |
useCORS: true,
|
| 232 |
logging: false,
|
| 233 |
+
width: content.offsetWidth + 20, // Add only right padding width
|
| 234 |
+
height: content.offsetHeight // Height stays the same
|
| 235 |
});
|
| 236 |
|
| 237 |
// Remove temporary wrapper
|