fix(plugin): space-between layout, no-shrink dropdown, horizontal padding
This commit is contained in:
@@ -110,12 +110,12 @@ export default function LibraryAppPanel({ appId, title, hardwareSlug, baseUrl }:
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Stats + device dropdown inline */}
|
{/* Stats + device dropdown — space-between, with padding */}
|
||||||
<PanelSectionRow>
|
<PanelSectionRow>
|
||||||
<div className={staticClasses.Text} style={{ display: "flex", alignItems: "center", justifyContent: "space-between", gap: "8px", padding: "2px 0", fontSize: "13px" }}>
|
<div className={staticClasses.Text} style={{ display: "flex", alignItems: "center", justifyContent: "space-between", gap: "12px", padding: "4px 16px", fontSize: "13px" }}>
|
||||||
<span style={{ flex: 1, textAlign: "center" }}>
|
<span style={{ flex: 1, textAlign: "left" }}>
|
||||||
{data.estFps ? (
|
{data.estFps ? (
|
||||||
<span style={{ display: "inline-flex", flexWrap: "wrap", gap: "4px 8px", justifyContent: "center" }}>
|
<span style={{ display: "inline-flex", flexWrap: "wrap", gap: "4px 8px" }}>
|
||||||
<span><strong>{data.estFps.avg}</strong> <span style={{ opacity: 0.4 }}>avg</span></span>
|
<span><strong>{data.estFps.avg}</strong> <span style={{ opacity: 0.4 }}>avg</span></span>
|
||||||
{data.estFps.onePct != null && <span><strong>{data.estFps.onePct}</strong> <span style={{ opacity: 0.4 }}>1% low</span></span>}
|
{data.estFps.onePct != null && <span><strong>{data.estFps.onePct}</strong> <span style={{ opacity: 0.4 }}>1% low</span></span>}
|
||||||
{data.estFps.low != null && <span><strong>{data.estFps.low}</strong> <span style={{ opacity: 0.4 }}>min</span></span>}
|
{data.estFps.low != null && <span><strong>{data.estFps.low}</strong> <span style={{ opacity: 0.4 }}>min</span></span>}
|
||||||
@@ -127,11 +127,13 @@ export default function LibraryAppPanel({ appId, title, hardwareSlug, baseUrl }:
|
|||||||
<span style={{ opacity: 0.4, fontSize: "12px" }}>No data yet</span>
|
<span style={{ opacity: 0.4, fontSize: "12px" }}>No data yet</span>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
<span style={{ flexShrink: 0 }}>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
rgOptions={deviceOptions}
|
rgOptions={deviceOptions}
|
||||||
selectedOption={device}
|
selectedOption={device}
|
||||||
onChange={(opt) => setDevice(opt.data as string)}
|
onChange={(opt) => setDevice(opt.data as string)}
|
||||||
/>
|
/>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</PanelSectionRow>
|
</PanelSectionRow>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user