PluginsTab: Fix Reset Card Overflow

This commit is contained in:
thororen1234 2025-09-28 09:23:23 -04:00
parent 64080b1b68
commit c28b92a1d8
No known key found for this signature in database
2 changed files with 13 additions and 7 deletions

View file

@ -139,6 +139,7 @@ function ExcludedPluginsList({ search }: { search: string; }) {
export default function PluginSettings() {
const settings = useSettings();
const changes = React.useMemo(() => new ChangeList<string>(), []);
const changeArray = changes.map(s => s);
React.useEffect(() => {
return () => void (changes.hasChanges && Alerts.show({
@ -146,12 +147,17 @@ export default function PluginSettings() {
body: (
<>
<p>The following plugins require a restart:</p>
<div>{changes.map((s, i) => (
<>
{i > 0 && ", "}
{Parser.parse("`" + s + "`")}
</>
))}</div>
<div>
{changeArray.slice(0, 15).map((s, i) => (
<span key={i}>
{i > 0 && ", "}
{Parser.parse("`" + s + "`")}
</span>
))}
{changeArray.length > 15 && (
<span> and {changeArray.length - 15} more</span>
)}
</div>
</>
),
confirmText: "Restart now",

View file

@ -92,4 +92,4 @@
.vc-bactivities-controls-tooltip {
--background-floating: var(--background-secondary);
}
}