NewPluginManager: Fix CSS

This commit is contained in:
thororen1234 2026-05-19 17:02:10 -04:00
parent 8a2f4633cf
commit cc5f38b109
No known key found for this signature in database
3 changed files with 19 additions and 38 deletions

View file

@ -13,6 +13,7 @@
letter-spacing: 0.02em; letter-spacing: 0.02em;
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
white-space: nowrap;
} }
.vc-badge-icon { .vc-badge-icon {
@ -51,4 +52,4 @@
.vc-badge-premium { .vc-badge-premium {
background-color: var(--premium-tier-2-purple-for-gradients); background-color: var(--premium-tier-2-purple-for-gradients);
color: var(--white); color: var(--white);
} }

View file

@ -32,7 +32,7 @@
} }
.vc-addon-note { .vc-addon-note {
height: 36px; height: 34px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
@ -105,4 +105,4 @@
.vc-addon-footer { .vc-addon-footer {
font-size: small; font-size: small;
} }

View file

@ -8,7 +8,6 @@ import "./styles.css";
import { Settings, useSettings } from "@api/Settings"; import { Settings, useSettings } from "@api/Settings";
import { BaseText } from "@components/BaseText"; import { BaseText } from "@components/BaseText";
import { Button } from "@components/Button";
import ErrorBoundary from "@components/ErrorBoundary"; import ErrorBoundary from "@components/ErrorBoundary";
import { PluginDependencyList } from "@components/settings/tabs/plugins"; import { PluginDependencyList } from "@components/settings/tabs/plugins";
import { PluginCard } from "@components/settings/tabs/plugins/PluginCard"; import { PluginCard } from "@components/settings/tabs/plugins/PluginCard";
@ -17,7 +16,7 @@ import { classNameFactory } from "@utils/css";
import { useForceUpdater } from "@utils/react"; import { useForceUpdater } from "@utils/react";
import { RenderModalProps } from "@vencord/discord-types"; import { RenderModalProps } from "@vencord/discord-types";
import { findComponentByCodeLazy } from "@webpack"; import { findComponentByCodeLazy } from "@webpack";
import { closeModal, Modal,openModal, Tooltip, useMemo } from "@webpack/common"; import { closeModal, Modal, openModal, Tooltip, useMemo } from "@webpack/common";
import { ReactNode } from "react"; import { ReactNode } from "react";
import Plugins from "~plugins"; import Plugins from "~plugins";
@ -133,44 +132,25 @@ function NewPluginsModal({ modalProps, newPlugins, newSettings }: ModalComponent
</BaseText> </BaseText>
</div> </div>
} }
actions={[
{
text: "Don't show this again",
onClick: () => {
Settings.plugins.NewPluginsManager.enabled = !settings?.plugins?.NewPluginsManager?.enabled;
},
variant: "secondary"
},
{
text: changes.hasChanges ? "Restart" : "Continue",
onClick: handleContinue,
variant: "primary"
}
]}
> >
<div className={cl("grid")}> <div className={cl("grid")}>
{pluginCards} {pluginCards}
{requiredPluginCards} {requiredPluginCards}
</div> </div>
<div className={cl("footer")} style={{ marginTop: "20px", display: "flex", justifyContent: "space-between", alignItems: "center" }}>
<Tooltip
text={
<>
The following plugins require a restart:
<ul className={cl("restart-list")}>
{changes.map(p => <li key={p}>{p}</li>)}
</ul>
</>
}
shouldShow={changes.hasChanges}
>
{tooltipProps => (
<Button
{...tooltipProps}
onClick={handleContinue}
>
{changes.hasChanges ? "Restart" : "Continue"}
</Button>
)}
</Tooltip>
<Checkbox
type="inverted"
value={!settings?.plugins?.NewPluginsManager?.enabled}
onChange={() => {
Settings.plugins.NewPluginsManager.enabled = !settings?.plugins?.NewPluginsManager?.enabled;
}}
>
Don't show this again
</Checkbox>
</div>
</Modal> </Modal>
); );
} }