mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 21:13:01 +00:00
Improved layout
This commit is contained in:
@@ -3,7 +3,14 @@ import regeneratorRuntime from "regenerator-runtime";
|
|||||||
import { useSelector, useDispatch } from "react-redux";
|
import { useSelector, useDispatch } from "react-redux";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
import { Button, Col, Row, FormControl } from "react-bootstrap";
|
import {
|
||||||
|
Button,
|
||||||
|
Col,
|
||||||
|
Row,
|
||||||
|
FormControl,
|
||||||
|
Card,
|
||||||
|
CardGroup,
|
||||||
|
} from "react-bootstrap";
|
||||||
import ReactObjectTableViewer from "react-object-table-viewer";
|
import ReactObjectTableViewer from "react-object-table-viewer";
|
||||||
|
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
@@ -257,12 +264,14 @@ const ServerDashboard = (props) => {
|
|||||||
</tr>,
|
</tr>,
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={6} style={{ padding: 0 }}>
|
<td colSpan={6} style={{ padding: 0 }}>
|
||||||
<div
|
{/*<div style={{ margin: "0 auto", float: "none" }}>*/}
|
||||||
|
<CardGroup
|
||||||
id={`${user.name}-${server.name}-collapse`}
|
id={`${user.name}-${server.name}-collapse`}
|
||||||
className="collapse"
|
className="collapse"
|
||||||
colSpan={6}
|
style={{ width: "90%", margin: "0 auto", float: "none" }}
|
||||||
>
|
>
|
||||||
<div style={{ padding: 6 }}>
|
<Card style={{ width: "50%", padding: 6, float: "left" }}>
|
||||||
|
<Card.Title>User</Card.Title>
|
||||||
<ReactObjectTableViewer
|
<ReactObjectTableViewer
|
||||||
className="table-striped table-bordered admin-table-head"
|
className="table-striped table-bordered admin-table-head"
|
||||||
style={{
|
style={{
|
||||||
@@ -275,10 +284,28 @@ const ServerDashboard = (props) => {
|
|||||||
valueStyle={{
|
valueStyle={{
|
||||||
padding: "4px",
|
padding: "4px",
|
||||||
}}
|
}}
|
||||||
data={{ user: userNoServers, server: server }}
|
data={userNoServers}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Card>
|
||||||
</div>
|
<Card style={{ width: "50%", padding: 6, display: "inline-block" }}>
|
||||||
|
<Card.Title>Server</Card.Title>
|
||||||
|
<ReactObjectTableViewer
|
||||||
|
className="table-striped table-bordered admin-table-head"
|
||||||
|
style={{
|
||||||
|
padding: "3px 6px",
|
||||||
|
margin: "auto",
|
||||||
|
}}
|
||||||
|
keyStyle={{
|
||||||
|
padding: "4px",
|
||||||
|
}}
|
||||||
|
valueStyle={{
|
||||||
|
padding: "4px",
|
||||||
|
}}
|
||||||
|
data={server}
|
||||||
|
/>
|
||||||
|
</Card>
|
||||||
|
</CardGroup>
|
||||||
|
{/*</div>*/}
|
||||||
</td>
|
</td>
|
||||||
</tr>,
|
</tr>,
|
||||||
];
|
];
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user