feat: add scrolle to match list in cmt

This commit is contained in:
Thibaut Valentin 2025-12-27 17:29:28 +01:00
parent 0dace76fc3
commit a73a3562c3
3 changed files with 7 additions and 8 deletions

View File

@ -247,7 +247,7 @@ function MatchList({matches, cat, menuActions}) {
</div>
}
<div className="table-responsive-xxl">
<div className="table-responsive-xxl overflow-y-auto" style={{maxHeight: "50vh"}}>
<table className="table table-striped table-hover">
<thead>
<tr>
@ -348,10 +348,12 @@ function BuildTree({treeData, matches, menuActions}) {
return <div>
<div className="overflow-y-auto" style={{maxHeight: "50vh"}}>
<div ref={scrollRef} className="overflow-x-auto" style={{position: "relative"}}>
<DrawGraph root={trees} scrollRef={scrollRef} onMatchClick={onMatchClick} onClickVoid={onClickVoid}
matchSelect={currentMatch?.matchSelect} matchNext={currentMatch?.matchNext} size={23}/>
</div>
</div>
{currentMatch?.matchSelect &&
<LoadingProvider><ScorePanel matchId={currentMatch?.matchSelect} matchs={matches} match={match} menuActions={menuActions}/></LoadingProvider>}

View File

@ -49,9 +49,6 @@ export function CMTable() {
<CategorieSelect catId={catId} setCatId={setCatId} menuActions={menuActions}/>
</div>
</div>
<div style={{backgroundColor: "#c70000"}}>
D
</div>
</div>
</div>
<Menu menuActions={menuActions}/>

View File

@ -95,7 +95,7 @@ function WSStatus({setPerm}) {
return () => dispatch({type: 'removeListener', payload: welcomeListener})
}, [])
return <div className="row">
return <div className="row" style={{marginRight: "inherit"}}>
<h2 className="col">{name}</h2>
<div className="col-auto" style={{margin: "auto 0", padding: 0}}>Serveur: <ColoredCircle
color={isReady ? (inWait ? "#ffad32" : "#00c700") : "#e50000"}/>