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{ .piece-progress{
position: relative; position: relative;
z-index: 1; z-index: 1;
background-color:#009090; background-color:#3fb57a;
top: 0; top: -1px;
left: 0; left: -1px;
width: 10px; width: 12px;
} }
</style> </style>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>

View File

@@ -122,9 +122,8 @@ export default function DialogCacheInfo(props) {
</Typography> </Typography>
</DialogTitle> </DialogTitle>
<DialogContent> <DialogContent>
{/*<div className="cache" dangerouslySetInnerHTML={{ __html: getCacheMap(cache) }} />*/}
<div className="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> </div>
</DialogContent> </DialogContent>
</div> </div>