Skip to content

Commit 17bbd3e

Browse files
committed
table width fix round 2
1 parent 286725e commit 17bbd3e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docs/snippets/CurrentPricesTable.jsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export const CurrentPricesTable = () => {
303303
}
304304

305305
return (
306-
<div style={{ marginTop: '20px', marginBottom: '20px' }}>
306+
<div style={{ marginTop: '20px', marginBottom: '20px', paddingLeft: '4px' }}>
307307
{litKeyPriceUSD && (
308308
<p style={{ marginBottom: '20px', fontSize: '0.9em', color: '#666' }}>
309309
<strong>LITKEY Price:</strong> ${litKeyPriceUSD.toFixed(4)} USD
@@ -315,21 +315,23 @@ export const CurrentPricesTable = () => {
315315
</p>
316316
)}
317317

318-
<div style={{ overflowX: 'auto' }}>
318+
<div style={{ overflowX: 'auto', marginLeft: '0', marginRight: '0', paddingLeft: '0' }}>
319319
<table
320320
style={{
321321
width: '100%',
322322
maxWidth: '100%',
323323
borderCollapse: 'collapse',
324324
marginBottom: '30px',
325+
marginLeft: '0',
326+
marginRight: '0',
325327
tableLayout: 'auto',
326328
}}
327329
>
328330
<thead>
329331
<tr style={{ backgroundColor: '#f5f5f5' }}>
330332
<th
331333
style={{
332-
padding: '8px 10px',
334+
padding: '8px 6px 8px 0',
333335
textAlign: 'left',
334336
border: '1px solid #ddd',
335337
fontSize: '0.9em',
@@ -388,7 +390,7 @@ export const CurrentPricesTable = () => {
388390
<tr key={productId}>
389391
<td
390392
style={{
391-
padding: '8px 10px',
393+
padding: '8px 6px 8px 0',
392394
border: '1px solid #ddd',
393395
fontWeight: '500',
394396
fontSize: '0.9em',
@@ -440,12 +442,14 @@ export const CurrentPricesTable = () => {
440442
<h3 style={{ marginTop: '40px', marginBottom: '20px' }}>
441443
Lit Action Price Components
442444
</h3>
443-
<div style={{ overflowX: 'auto' }}>
445+
<div style={{ overflowX: 'auto', marginLeft: '0', marginRight: '0', paddingLeft: '0' }}>
444446
<table
445447
style={{
446448
width: '100%',
447449
maxWidth: '100%',
448450
borderCollapse: 'collapse',
451+
marginLeft: '0',
452+
marginRight: '0',
449453
tableLayout: 'auto',
450454
}}
451455
>

0 commit comments

Comments
 (0)