mirror of
https://github.com/owncast/owncast.git
synced 2025-11-11 18:09:50 +08:00
fix for #408
This commit is contained in:
@@ -180,9 +180,8 @@ export default function Home() {
|
|||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<LogTable logs={logsData} pageSize={5} />
|
<LogTable logs={logsData} pageSize={5} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
import { Result, Card, Typography } from "antd";
|
import { Result, Card } from "antd";
|
||||||
import { MessageTwoTone, BulbTwoTone, BookTwoTone, PlaySquareTwoTone } from '@ant-design/icons';
|
import { MessageTwoTone, BulbTwoTone, BookTwoTone, PlaySquareTwoTone } from '@ant-design/icons';
|
||||||
import OwncastLogo from "./components/logo"
|
import OwncastLogo from "./components/logo"
|
||||||
import LogTable from "./components/log-table";
|
import LogTable from "./components/log-table";
|
||||||
|
|
||||||
|
|
||||||
const { Title } = Typography;
|
|
||||||
const { Meta } = Card;
|
const { Meta } = Card;
|
||||||
|
|
||||||
export default function Offline({ logs = [] }) {
|
export default function Offline({ logs = [] }) {
|
||||||
@@ -47,29 +45,31 @@ export default function Offline({ logs = [] }) {
|
|||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="offline-content">
|
<>
|
||||||
<div className="logo-section">
|
<div className="offline-content">
|
||||||
<Result
|
<div className="logo-section">
|
||||||
icon={<OwncastLogo />}
|
<Result
|
||||||
title="No stream is active."
|
icon={<OwncastLogo />}
|
||||||
subTitle="You should start one."
|
title="No stream is active."
|
||||||
/>
|
subTitle="You should start one."
|
||||||
</div>
|
/>
|
||||||
<div className="list-section">
|
</div>
|
||||||
{
|
<div className="list-section">
|
||||||
data.map(item => (
|
{
|
||||||
<Card key={item.title}>
|
data.map(item => (
|
||||||
<Meta
|
<Card key={item.title}>
|
||||||
avatar={item.icon}
|
<Meta
|
||||||
title={item.title}
|
avatar={item.icon}
|
||||||
description={item.content}
|
title={item.title}
|
||||||
/>
|
description={item.content}
|
||||||
</Card>
|
/>
|
||||||
))
|
</Card>
|
||||||
}
|
))
|
||||||
</div>
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
<LogTable logs={logs} pageSize={5} />
|
<LogTable logs={logs} pageSize={5} />
|
||||||
</div>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user