nesticot commited on
Commit
fc4ba39
·
verified ·
1 Parent(s): ec48d0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 margins
217
  const wrapper = document.createElement('div');
218
- wrapper.style.padding = '20px';
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 + 40, // Add padding width
234
- height: content.offsetHeight + 40 // Add padding height
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