some fix in cache

This commit is contained in:
YouROK
2021-04-21 21:12:52 +03:00
parent 3eb3d9efbc
commit f13203e512
2 changed files with 5 additions and 6 deletions

View File

@@ -41,11 +41,11 @@
.piece-progress{
position: relative;
z-index: 1;
background-color:#009090;
background-color:#3fb57a;
top: 0;
left: 0;
width: 10px;
top: -1px;
left: -1px;
width: 12px;
}
</style>
<noscript>You need to enable JavaScript to run this app.</noscript>

View File

@@ -122,9 +122,8 @@ export default function DialogCacheInfo(props) {
</Typography>
</DialogTitle>
<DialogContent>
{/*<div className="cache" dangerouslySetInnerHTML={{ __html: getCacheMap(cache) }} />*/}
<div className="cache">
{pMap.map((itm) => <span className={itm.class} title={itm.info}>{itm.prc>0 && itm.prc<100 && (<div className="piece-progress" style={{height: itm.prc+"%"}}></div>)}</span>)}
{pMap.map((itm) => <span className={itm.class} title={itm.info}>{itm.prc>0 && itm.prc<100 && (<div className="piece-progress" style={{height: itm.prc/100*12+"px"}}></div>)}</span>)}
</div>
</DialogContent>
</div>