fix(frontend): constrain service monitor records modal (#557)

This commit is contained in:
sagit
2026-09-24 16:12:03 +08:00
committed by GitHub
parent cf7246c71b
commit 129fa0aa4c
@@ -1931,13 +1931,15 @@ export function MonitorView({ nodeMap, viewMode = "grid" }: MonitorViewProps) {
<Modal <Modal
isOpen={resultsModalOpen} isOpen={resultsModalOpen}
scrollBehavior="inside"
size="xl"
onClose={() => { onClose={() => {
setResultsModalOpen(false); setResultsModalOpen(false);
setResultsMonitorId(null); setResultsMonitorId(null);
}} }}
> >
<ModalContent> <ModalContent>
<ModalHeader className="flex flex-row items-center justify-between gap-3"> <ModalHeader className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<div className="min-w-0"> <div className="min-w-0">
<div className="text-base font-semibold truncate"> <div className="text-base font-semibold truncate">
监控记录 监控记录
@@ -1965,7 +1967,7 @@ export function MonitorView({ nodeMap, viewMode = "grid" }: MonitorViewProps) {
) : null} ) : null}
</div> </div>
{resultsMonitorId != null ? ( {resultsMonitorId != null ? (
<div className="flex items-center gap-2 shrink-0"> <div className="flex shrink-0 items-center gap-2">
<Select <Select
className="w-28" className="w-28"
selectedKeys={[String(resultsLimit)]} selectedKeys={[String(resultsLimit)]}
@@ -2011,7 +2013,7 @@ export function MonitorView({ nodeMap, viewMode = "grid" }: MonitorViewProps) {
) : modalResults.length > 0 ? ( ) : modalResults.length > 0 ? (
<Table <Table
aria-label="监控记录" aria-label="监控记录"
className="w-full overflow-x-auto" className="min-w-[32rem]"
classNames={{ classNames={{
wrapper: wrapper:
"bg-transparent p-0 shadow-none border-none overflow-auto rounded-2xl", "bg-transparent p-0 shadow-none border-none overflow-auto rounded-2xl",