fix(ui): settle overview requests independently and fix three layout faults

- Overview: Promise.allSettled per endpoint, so one failing auxiliary call no
  longer blanks the whole page or hides the version.
- MemoryTab: distinguish 'no memories yet' from 'no match on this page'.
- RawTab: auto-fit grid so the two columns collapse on a narrow panel.
- Pills: clip long values instead of overflowing the rounded box.
This commit is contained in:
newbie 2026-11-27 18:05:55 +08:00
parent 31037b0d31
commit c7907735c3
7 changed files with 64 additions and 40 deletions

View File

@ -268,7 +268,8 @@ window.__ModuleLoader__.load({
fontSize: "12px", fontSize: "12px",
maxWidth: "100%", maxWidth: "100%",
whiteSpace: "nowrap", whiteSpace: "nowrap",
flex: "0 0 auto" overflow: "hidden",
flex: "0 1 auto"
}, },
table: { table: {
width: "100%", width: "100%",
@ -485,7 +486,15 @@ window.__ModuleLoader__.load({
const h$13 = react.createElement; const h$13 = react.createElement;
function Pill$1(props) { function Pill$1(props) {
var tone = styles[props.tone] === void 0 ? styles.muted : styles[props.tone]; var tone = styles[props.tone] === void 0 ? styles.muted : styles[props.tone];
return h$13("span", { style: Object.assign({}, styles.pill, tone) }, h$13("span", { style: { opacity: .75 } }, props.label), h$13("span", { style: { fontWeight: 600 } }, String(props.value))); return h$13("span", { style: Object.assign({}, styles.pill, tone) }, h$13("span", { style: {
opacity: .75,
flex: "0 0 auto"
} }, props.label), h$13("span", { style: {
fontWeight: 600,
overflow: "hidden",
textOverflow: "ellipsis",
minWidth: 0
} }, String(props.value)));
} }
function Banner(props) { function Banner(props) {
var tone = styles[props.tone] === void 0 ? styles.muted : styles[props.tone]; var tone = styles[props.tone] === void 0 ? styles.muted : styles[props.tone];
@ -4131,7 +4140,7 @@ window.__ModuleLoader__.load({
}))); })));
} }
// \0dsh-brain-css:src-client/panel/BrainPanel.module.css.mjs // \0dsh-brain-css:src-client/panel/BrainPanel.module.css.mjs
const css = "/* Adapted from dsh-mnemon MnemonWorkspace.dshbrain_1xedgey.dshbrain_holtzx (MIT), see vendor/dsh-mnemon/LICENSE. */\n.dshbrain_1y11fqi {\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n display: flex;\n width: 100%;\n height: 100%;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n flex: 1 1 auto;\n padding-block-start: var(--dsh-frame-top-clearance, 0px);\n}\n\n.dshbrain_1y11fqi > * {\n min-width: 0;\n flex: 1 1 auto;\n}\n\n.dshbrain_131vunv {\n position: absolute;\n inset: 0 0 auto;\n height: var(--dsh-frame-top-clearance, 0px);\n}\n\n.dshbrain_oyvdy4 {\n display: flex;\n flex-direction: column;\n gap: 14px;\n padding: 18px 20px 24px;\n overflow: auto;\n font-size: 13px;\n line-height: 1.55;\n color: var(--dsw-alias-label-primary, inherit);\n}\n\n.dshbrain_of3f1r {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.dshbrain_vnw8w9 {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.dshbrain_g8fis8 {\n margin: 0;\n font-size: 16px;\n font-weight: 650;\n letter-spacing: 0.01em;\n}\n\n.dshbrain_1milhhm {\n margin: 0;\n font-size: 11.5px;\n opacity: 0.58;\n}\n\n.dshbrain_xnx8bm {\n display: flex;\n gap: 4px;\n padding: 3px;\n border-radius: 13px;\n border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.22));\n background: var(--dsw-alias-bg-subtle, rgba(127,127,127,0.06));\n flex-wrap: wrap;\n}\n\n.dshbrain_7mndvh {\n flex: 1 1 auto;\n min-width: 88px;\n font: inherit;\n font-size: 12.5px;\n padding: 7px 12px;\n border-radius: 10px;\n border: 1px solid transparent;\n background: transparent;\n color: inherit;\n cursor: pointer;\n white-space: nowrap;\n}\n\n.dshbrain_rvx7lj {\n border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.30));\n background: var(--dsw-alias-interactive-bg-hover, rgba(127,127,127,0.14));\n box-shadow: 0 1px 3px rgba(0,0,0,0.10);\n font-weight: 600;\n}\n\n.dshbrain_1rfmkcf {\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n}\n\n.dshbrain_c36neh {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.dshbrain_1a7ley4 {\n display: flex;\n flex-direction: column;\n gap: 10px;\n border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.22));\n border-radius: 16px;\n padding: 16px 18px;\n min-width: 0;\n}\n\n.dshbrain_1f1qv8u {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.dshbrain_1t5691m {\n margin: 0;\n font-size: 13.5px;\n font-weight: 650;\n}\n\n.dshbrain_updgou {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.dshbrain_xwrsl5 {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 3px 10px;\n border-radius: 999px;\n border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.35));\n font-size: 12px;\n white-space: nowrap;\n}\n\n.dshbrain_mvsf69 {\n opacity: 0.75;\n}\n\n.dshbrain_1xby9uu {\n font-weight: 600;\n}\n\n.dshbrain_1bzyta0 { border-color: rgba(22,163,74,0.55); background: rgba(22,163,74,0.12); }\n.dshbrain_1hx5ob5 { border-color: rgba(220,38,38,0.55); background: rgba(220,38,38,0.12); }\n.dshbrain_amukxq { border-color: rgba(217,119,6,0.55); background: rgba(217,119,6,0.12); }\n.dshbrain_uf6ztt { }\n\n.dshbrain_1vi102j {\n margin: 0;\n font-size: 11.5px;\n opacity: 0.58;\n}\n\n.dshbrain_qmj948 {\n padding: 10px 13px;\n border-radius: 11px;\n border: 1px solid rgba(220,38,38,0.55);\n background: rgba(220,38,38,0.12);\n font-size: 12.5px;\n}\n\n.dshbrain_1ex8b80 {\n display: flex;\n align-items: baseline;\n flex-wrap: wrap;\n}\n\n.dshbrain_1048ygk {\n display: inline-flex;\n align-items: baseline;\n gap: 6px;\n padding-right: 18px;\n margin-right: 18px;\n border-right: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.20));\n}\n\n.dshbrain_1bvujjo {\n display: inline-flex;\n align-items: baseline;\n gap: 6px;\n}\n\n.dshbrain_d75ahw {\n font-size: 17px;\n font-weight: 700;\n}\n"; const css = "/* Adapted from dsh-mnemon MnemonWorkspace.dshbrain_1xedgey.dshbrain_holtzx (MIT), see vendor/dsh-mnemon/LICENSE. */\n.dshbrain_1y11fqi {\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n display: flex;\n width: 100%;\n height: 100%;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n flex: 1 1 auto;\n padding-block-start: var(--dsh-frame-top-clearance, 0px);\n}\n\n.dshbrain_1y11fqi > * {\n min-width: 0;\n flex: 1 1 auto;\n}\n\n.dshbrain_131vunv {\n position: absolute;\n inset: 0 0 auto;\n height: var(--dsh-frame-top-clearance, 0px);\n}\n\n.dshbrain_oyvdy4 {\n display: flex;\n flex-direction: column;\n gap: 14px;\n padding: 18px 20px 24px;\n overflow: auto;\n font-size: 13px;\n line-height: 1.55;\n color: var(--dsw-alias-label-primary, inherit);\n}\n\n.dshbrain_of3f1r {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.dshbrain_vnw8w9 {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.dshbrain_g8fis8 {\n margin: 0;\n font-size: 16px;\n font-weight: 650;\n letter-spacing: 0.01em;\n}\n\n.dshbrain_1milhhm {\n margin: 0;\n font-size: 11.5px;\n opacity: 0.58;\n}\n\n.dshbrain_xnx8bm {\n display: flex;\n gap: 4px;\n padding: 3px;\n border-radius: 13px;\n border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.22));\n background: var(--dsw-alias-bg-subtle, rgba(127,127,127,0.06));\n flex-wrap: wrap;\n}\n\n.dshbrain_7mndvh {\n flex: 1 1 auto;\n min-width: 88px;\n font: inherit;\n font-size: 12.5px;\n padding: 7px 12px;\n border-radius: 10px;\n border: 1px solid transparent;\n background: transparent;\n color: inherit;\n cursor: pointer;\n white-space: nowrap;\n}\n\n.dshbrain_rvx7lj {\n border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.30));\n background: var(--dsw-alias-interactive-bg-hover, rgba(127,127,127,0.14));\n box-shadow: 0 1px 3px rgba(0,0,0,0.10);\n font-weight: 600;\n}\n\n.dshbrain_1rfmkcf {\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n}\n\n.dshbrain_c36neh {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.dshbrain_1a7ley4 {\n display: flex;\n flex-direction: column;\n gap: 10px;\n border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.22));\n border-radius: 16px;\n padding: 16px 18px;\n min-width: 0;\n}\n\n.dshbrain_1f1qv8u {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.dshbrain_1t5691m {\n margin: 0;\n font-size: 13.5px;\n font-weight: 650;\n}\n\n.dshbrain_updgou {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.dshbrain_xwrsl5 {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 3px 10px;\n border-radius: 999px;\n border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.35));\n font-size: 12px;\n white-space: nowrap;\n overflow: hidden;\n max-width: 100%;\n}\n\n.dshbrain_mvsf69 {\n opacity: 0.75;\n flex: 0 0 auto;\n}\n\n.dshbrain_1xby9uu {\n font-weight: 600;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n}\n\n.dshbrain_1bzyta0 { border-color: rgba(22,163,74,0.55); background: rgba(22,163,74,0.12); }\n.dshbrain_1hx5ob5 { border-color: rgba(220,38,38,0.55); background: rgba(220,38,38,0.12); }\n.dshbrain_amukxq { border-color: rgba(217,119,6,0.55); background: rgba(217,119,6,0.12); }\n.dshbrain_uf6ztt { }\n\n.dshbrain_1vi102j {\n margin: 0;\n font-size: 11.5px;\n opacity: 0.58;\n}\n\n.dshbrain_qmj948 {\n padding: 10px 13px;\n border-radius: 11px;\n border: 1px solid rgba(220,38,38,0.55);\n background: rgba(220,38,38,0.12);\n font-size: 12.5px;\n}\n\n.dshbrain_1ex8b80 {\n display: flex;\n align-items: baseline;\n flex-wrap: wrap;\n}\n\n.dshbrain_1048ygk {\n display: inline-flex;\n align-items: baseline;\n gap: 6px;\n padding-right: 18px;\n margin-right: 18px;\n border-right: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.20));\n}\n\n.dshbrain_1bvujjo {\n display: inline-flex;\n align-items: baseline;\n gap: 6px;\n}\n\n.dshbrain_d75ahw {\n font-size: 17px;\n font-weight: 700;\n}\n";
const tagId = "src-client/panel/BrainPanel.module.css"; const tagId = "src-client/panel/BrainPanel.module.css";
if (typeof document !== "undefined" && typeof document.querySelector === "function" && typeof document.createElement === "function") { if (typeof document !== "undefined" && typeof document.querySelector === "function" && typeof document.createElement === "function") {
let tag = document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]"); let tag = document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]");
@ -4202,23 +4211,25 @@ window.__ModuleLoader__.load({
if (!active) return; if (!active) return;
let cancelled = false; let cancelled = false;
const load = async () => { const load = async () => {
try { const [statusSettled, capabilitiesSettled, memorySettled] = await Promise.allSettled([
const [statusResult, capabilitiesResult, memoryResult] = await Promise.all([
request(API.status), request(API.status),
request(API.capabilities), request(API.capabilities),
request("/dsh-brain/local-memory/status?scope=global") request("/dsh-brain/local-memory/status?scope=global")
]); ]);
if (cancelled) return; if (cancelled) return;
if (statusResult.status === 200 && statusResult.body !== null && statusResult.body.ok === true) { if (statusSettled.status === "fulfilled") {
setStatus(statusResult.body); const result = statusSettled.value;
if (result.status === 200 && result.body !== null && result.body.ok === true) {
setStatus(result.body);
setError(null); setError(null);
} else setError("读取插件状态失败(HTTP " + String(statusResult.status) + ")"); } else setError("读取插件状态失败(HTTP " + String(result.status) + ")");
if (capabilitiesResult.status === 200 && capabilitiesResult.body !== null && capabilitiesResult.body.ok === true) setCapabilities(capabilitiesResult.body); } else setError(messageOf(statusSettled.reason));
if (memoryResult.status === 200 && memoryResult.body !== null && memoryResult.body.ok === true) setMemory(memoryResult.body); if (capabilitiesSettled.status === "fulfilled") {
else setMemory(null); const result = capabilitiesSettled.value;
} catch (failure) { if (result.status === 200 && result.body !== null && result.body.ok === true) setCapabilities(result.body);
if (!cancelled) setError(messageOf(failure));
} }
if (memorySettled.status === "fulfilled" && memorySettled.value.status === 200 && memorySettled.value.body !== null && memorySettled.value.body.ok === true) setMemory(memorySettled.value.body);
else setMemory(null);
}; };
load(); load();
const timer = setInterval(() => { const timer = setInterval(() => {
@ -4446,7 +4457,7 @@ window.__ModuleLoader__.load({
variant: "small", variant: "small",
onClick: () => memories.reload() onClick: () => memories.reload()
})) }))
}, notice === null ? null : h$4(Banner, { tone: notice.tone }, notice.text), memories.error === null ? null : h$4(Banner, { tone: "bad" }, memories.error), memories.status === "loading" && items.length === 0 ? h$4("p", { style: styles.hint }, "正在读取记忆…") : null, filtered.length === 0 ? h$4("p", { style: styles.hint }, "当前页没有匹配的记忆条目。") : h$4("div", { style: { }, notice === null ? null : h$4(Banner, { tone: notice.tone }, notice.text), memories.error === null ? null : h$4(Banner, { tone: "bad" }, memories.error), memories.status === "loading" && items.length === 0 ? h$4("p", { style: styles.hint }, "正在读取记忆…") : null, filtered.length === 0 ? h$4("p", { style: styles.hint }, total === 0 && needle === "" ? "还没有记忆条目。对话中让助手记住,或用 memory_add 写入。" : "当前页没有匹配的记忆条目。") : h$4("div", { style: {
display: "flex", display: "flex",
flexDirection: "column", flexDirection: "column",
gap: "8px" gap: "8px"
@ -4666,7 +4677,7 @@ window.__ModuleLoader__.load({
}, },
layout: { layout: {
display: "grid", display: "grid",
gridTemplateColumns: "minmax(240px, .78fr) minmax(0, 1.55fr)", gridTemplateColumns: "repeat(auto-fit, minmax(min(240px, 100%), 1fr))",
gap: "12px", gap: "12px",
alignItems: "start" alignItems: "start"
}, },

View File

@ -10,8 +10,8 @@ export function Pill(props) {
return h( return h(
'span', 'span',
{ style: Object.assign({}, styles.pill, tone) }, { style: Object.assign({}, styles.pill, tone) },
h('span', { style: { opacity: 0.75 } }, props.label), h('span', { style: { opacity: 0.75, flex: '0 0 auto' } }, props.label),
h('span', { style: { fontWeight: 600 } }, String(props.value)), h('span', { style: { fontWeight: 600, overflow: 'hidden', textOverflow: 'ellipsis', minWidth: 0 } }, String(props.value)),
) )
} }

View File

@ -146,14 +146,20 @@
border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.35)); border: 1px solid var(--dsw-alias-border-subtle, rgba(127,127,127,0.35));
font-size: 12px; font-size: 12px;
white-space: nowrap; white-space: nowrap;
overflow: hidden;
max-width: 100%;
} }
.pillLabel { .pillLabel {
opacity: 0.75; opacity: 0.75;
flex: 0 0 auto;
} }
.pillValue { .pillValue {
font-weight: 600; font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
} }
.ok { border-color: rgba(22,163,74,0.55); background: rgba(22,163,74,0.12); } .ok { border-color: rgba(22,163,74,0.55); background: rgba(22,163,74,0.12); }

View File

@ -81,7 +81,7 @@ export function MemoryTab(props: BrainScope & { active?: boolean }): any {
notice === null ? null : h(Banner, { tone: notice.tone }, notice.text), notice === null ? null : h(Banner, { tone: notice.tone }, notice.text),
memories.error === null ? null : h(Banner, { tone: 'bad' }, memories.error), memories.error === null ? null : h(Banner, { tone: 'bad' }, memories.error),
memories.status === 'loading' && items.length === 0 ? h('p', { style: styles.hint }, '正在读取记忆…') : null, memories.status === 'loading' && items.length === 0 ? h('p', { style: styles.hint }, '正在读取记忆…') : null,
filtered.length === 0 ? h('p', { style: styles.hint }, '当前页没有匹配的记忆条目。') : h('div', { style: { display: 'flex', flexDirection: 'column', gap: '8px' } }, filtered.length === 0 ? h('p', { style: styles.hint }, total === 0 && needle === '' ? '还没有记忆条目。对话中让助手记住,或用 memory_add 写入。' : '当前页没有匹配的记忆条目。') : h('div', { style: { display: 'flex', flexDirection: 'column', gap: '8px' } },
filtered.map((item) => h('div', { key: item.id, style: styles.row }, filtered.map((item) => h('div', { key: item.id, style: styles.row },
h('div', { style: styles.rowHead }, h('div', { style: styles.rowHead },
h('div', { style: styles.pills }, h('div', { style: styles.pills },

View File

@ -41,25 +41,31 @@ export function Overview(props: { active?: boolean }): any {
if (!active) return if (!active) return
let cancelled = false let cancelled = false
const load = async (): Promise<void> => { const load = async (): Promise<void> => {
try { // Each endpoint settles on its own: a failing auxiliary endpoint must not
const [statusResult, capabilitiesResult, memoryResult] = await Promise.all([ // discard the primary status payload or blank the whole overview.
const [statusSettled, capabilitiesSettled, memorySettled] = await Promise.allSettled([
request(API.status), request(API.status),
request(API.capabilities), request(API.capabilities),
request('/dsh-brain/local-memory/status?scope=global'), request('/dsh-brain/local-memory/status?scope=global'),
]) ])
if (cancelled) return if (cancelled) return
if (statusResult.status === 200 && statusResult.body !== null && statusResult.body.ok === true) { if (statusSettled.status === 'fulfilled') {
setStatus(statusResult.body) const result = statusSettled.value
if (result.status === 200 && result.body !== null && result.body.ok === true) {
setStatus(result.body)
setError(null) setError(null)
} else { } else {
setError('读取插件状态失败(HTTP ' + String(statusResult.status) + ')') setError('读取插件状态失败(HTTP ' + String(result.status) + ')')
} }
if (capabilitiesResult.status === 200 && capabilitiesResult.body !== null && capabilitiesResult.body.ok === true) setCapabilities(capabilitiesResult.body) } else {
if (memoryResult.status === 200 && memoryResult.body !== null && memoryResult.body.ok === true) setMemory(memoryResult.body) setError(messageOf(statusSettled.reason))
}
if (capabilitiesSettled.status === 'fulfilled') {
const result = capabilitiesSettled.value
if (result.status === 200 && result.body !== null && result.body.ok === true) setCapabilities(result.body)
}
if (memorySettled.status === 'fulfilled' && memorySettled.value.status === 200 && memorySettled.value.body !== null && memorySettled.value.body.ok === true) setMemory(memorySettled.value.body)
else setMemory(null) else setMemory(null)
} catch (failure) {
if (!cancelled) setError(messageOf(failure))
}
} }
void load() void load()
const timer = setInterval(() => { void load() }, 15000) const timer = setInterval(() => { void load() }, 15000)

View File

@ -58,7 +58,7 @@ const s: Record<string, any> = {
chips: { display: 'flex', gap: '4px', padding: '2px', borderRadius: '9px', border: '1px solid rgba(127,127,127,0.18)' }, chips: { display: 'flex', gap: '4px', padding: '2px', borderRadius: '9px', border: '1px solid rgba(127,127,127,0.18)' },
chip: { font: 'inherit', fontSize: '11.5px', padding: '5px 9px', borderRadius: '7px', border: '1px solid transparent', background: 'transparent', color: 'inherit', cursor: 'pointer' }, chip: { font: 'inherit', fontSize: '11.5px', padding: '5px 9px', borderRadius: '7px', border: '1px solid transparent', background: 'transparent', color: 'inherit', cursor: 'pointer' },
chipActive: { border: '1px solid rgba(99,102,241,0.45)', background: 'rgba(99,102,241,0.14)', fontWeight: 600 }, chipActive: { border: '1px solid rgba(99,102,241,0.45)', background: 'rgba(99,102,241,0.14)', fontWeight: 600 },
layout: { display: 'grid', gridTemplateColumns: 'minmax(240px, .78fr) minmax(0, 1.55fr)', gap: '12px', alignItems: 'start' }, layout: { display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(min(240px, 100%), 1fr))', gap: '12px', alignItems: 'start' },
card: { border: '1px solid rgba(127,127,127,0.22)', borderRadius: '16px', padding: '16px', minWidth: 0, display: 'flex', flexDirection: 'column', gap: '10px' }, card: { border: '1px solid rgba(127,127,127,0.22)', borderRadius: '16px', padding: '16px', minWidth: 0, display: 'flex', flexDirection: 'column', gap: '10px' },
cardHead: { display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: '8px', flexWrap: 'wrap' }, cardHead: { display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: '8px', flexWrap: 'wrap' },
cardTitle: { margin: 0, fontSize: '13.5px', fontWeight: 650 }, cardTitle: { margin: 0, fontSize: '13.5px', fontWeight: 650 },

View File

@ -161,7 +161,8 @@ export const styles = {
fontSize: '12px', fontSize: '12px',
maxWidth: '100%', maxWidth: '100%',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
flex: '0 0 auto', overflow: 'hidden',
flex: '0 1 auto',
}, },
table: { table: {
width: '100%', width: '100%',