@@ -2,29 +2,57 @@ import PanelPowerIcon from "@components/panels/PanelPowerIcon";
22import PanelRowState from "@components/panels/PanelRowState" ;
33import BugApiSwitch from "@core/BugApiSwitch" ;
44import MoreVertIcon from "@mui/icons-material/MoreVert" ;
5- import { TableCell , TableRow } from "@mui/material" ;
5+ import { Box , TableCell , TableRow } from "@mui/material" ;
66
77export default function PanelEditTableRow ( { id, panel } ) {
88 return (
9- < TableRow hover key = { id } sx = { { height : "65px" , cursor : "move" , backgroundColor : "background.paper" } } >
9+ < TableRow hover key = { id } sx = { { height : "65px" , backgroundColor : "background.paper" } } >
1010 < TableCell
1111 sx = { {
12- width : "48px " ,
12+ width : "54px " ,
1313 textAlign : "center" ,
1414 } }
1515 >
1616 < PanelPowerIcon panel = { panel } />
1717 </ TableCell >
18- < TableCell sx = { { textAlign : "center" } } >
18+ < TableCell sx = { { width : "4rem" } } style = { { textAlign : "center" } } >
1919 < BugApiSwitch checked = { panel . enabled } disabled />
2020 </ TableCell >
21- < TableCell sx = { { width : "50%" } } >
21+ < TableCell >
2222 < div > { panel . title } </ div >
2323 < PanelRowState panel = { panel } />
2424 </ TableCell >
25- < TableCell sx = { { width : "50%" } } > { panel . _module . longname } </ TableCell >
26- < TableCell sx = { { width : "48px" } } >
27- < MoreVertIcon />
25+ < TableCell
26+ sx = { {
27+ "@media (max-width:1024px)" : {
28+ display : "none" ,
29+ } ,
30+ } }
31+ >
32+ { panel . description }
33+ </ TableCell >
34+ < TableCell
35+ sx = { {
36+ "@media (max-width:512px)" : {
37+ display : "none" ,
38+ } ,
39+ } }
40+ >
41+ { panel . _module . longname }
42+ </ TableCell >
43+ < TableCell
44+ sx = { {
45+ "@media (max-width:250px)" : {
46+ display : "none" ,
47+ } ,
48+ } }
49+ >
50+ < Box sx = { { padding : "0.5rem" } } > { panel . _module . version } </ Box >
51+ </ TableCell >
52+ < TableCell sx = { { width : "2rem" } } >
53+ < Box sx = { { width : 40 , height : 40 , display : "flex" , alignItems : "center" , justifyContent : "center" } } >
54+ < MoreVertIcon sx = { { opacity : 0.5 } } />
55+ </ Box >
2856 </ TableCell >
2957 </ TableRow >
3058 ) ;
0 commit comments