@@ -1513,14 +1513,14 @@ import { registerExportInfo, downloadExportData } from './core/exportInfo.js';
15131513 const isNarrow = isNarrowViewport ( ) ;
15141514 const cellPadding = isNarrow ? '4px 5px' : '4px 8px' ;
15151515 const table = document . createElement ( "table" ) ;
1516- table . style . cssText = `border-collapse:collapse;margin:10px 0;background:${ d ? '#333' : '#f9f9f9' } ;color:${ d ? 'white' : '#333' } ;font-size:${ isNarrow ? 12 : 13 } px;width:100% ;table-layout:fixed ;` ;
1516+ table . style . cssText = `border-collapse:collapse;margin:10px 0;background:${ d ? '#333' : '#f9f9f9' } ;color:${ d ? 'white' : '#333' } ;font-size:${ isNarrow ? 12 : 13 } px;width:auto ;table-layout:auto;white-space:nowrap ;` ;
15171517
15181518 const thead = document . createElement ( "thead" ) ;
15191519 const headerRow = document . createElement ( "tr" ) ;
15201520 [ "物品" , "质量" , "饱和度" ] . forEach ( text => {
15211521 const th = document . createElement ( "th" ) ;
15221522 th . textContent = text ;
1523- th . style . cssText = `border:1px solid ${ d ? '#666' : '#ccc' } ;padding:${ cellPadding } ;overflow-wrap:anywhere;word-break:break-word ;` ;
1523+ th . style . cssText = `border:1px solid ${ d ? '#666' : '#ccc' } ;padding:${ cellPadding } ;text-align:center;vertical-align:middle;white-space:nowrap ;` ;
15241524 headerRow . appendChild ( th ) ;
15251525 } ) ;
15261526 thead . appendChild ( headerRow ) ;
@@ -1533,7 +1533,7 @@ import { registerExportInfo, downloadExportData } from './core/exportInfo.js';
15331533 [ name , item . quality ?? "-" , String ( item . saturation ) ] . forEach ( text => {
15341534 const td = document . createElement ( "td" ) ;
15351535 td . textContent = text ;
1536- td . style . cssText = `border:1px solid ${ d ? '#666' : '#ccc' } ;padding:${ cellPadding } ;text-align:center;overflow-wrap:anywhere;word-break:break-word ;` ;
1536+ td . style . cssText = `border:1px solid ${ d ? '#666' : '#ccc' } ;padding:${ cellPadding } ;text-align:center;vertical-align:middle;white-space:nowrap ;` ;
15371537 row . appendChild ( td ) ;
15381538 } ) ;
15391539 tbody . appendChild ( row ) ;
@@ -1553,7 +1553,7 @@ import { registerExportInfo, downloadExportData } from './core/exportInfo.js';
15531553 const d = DM ( ) ;
15541554 const isNarrow = isNarrowViewport ( ) ;
15551555 const containerPadding = isNarrow ? 8 : 12 ;
1556- const containerMaxHeight = isNarrow ? 'calc(100vh - 70px) ' : '400px' ;
1556+ const containerMaxHeight = isNarrow ? '320px ' : '400px' ;
15571557 const titleFont = isNarrow ? 13 : 14 ;
15581558 const subFont = isNarrow ? 12 : 13 ;
15591559 const list = data . ResourcesRetailInfo ;
@@ -1579,7 +1579,7 @@ import { registerExportInfo, downloadExportData } from './core/exportInfo.js';
15791579 position:fixed; left:10px; top:50px; z-index:9998; box-sizing:border-box;
15801580 background:${ d ? '#2c2c2c' : '#fff' } ; color:${ d ? '#fff' : '#333' } ; padding:${ containerPadding } px;
15811581 border-radius:8px; max-height:${ containerMaxHeight } ; overflow:auto;
1582- width:auto ; max-width: calc(100vw - 20px);
1582+ width:max-content ; max-width: calc(100vw - 20px);
15831583 box-shadow:0 4px 15px rgba(0,0,0,0.5); font-family:Arial, sans-serif;
15841584 ` ;
15851585
0 commit comments