NewPluginManager: Fix CSS
This commit is contained in:
parent
8a2f4633cf
commit
cc5f38b109
3 changed files with 19 additions and 38 deletions
|
|
@ -13,6 +13,7 @@
|
|||
letter-spacing: 0.02em;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.vc-badge-icon {
|
||||
|
|
@ -51,4 +52,4 @@
|
|||
.vc-badge-premium {
|
||||
background-color: var(--premium-tier-2-purple-for-gradients);
|
||||
color: var(--white);
|
||||
}
|
||||
}
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
|
||||
.vc-addon-note {
|
||||
height: 36px;
|
||||
height: 34px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
|
|
@ -105,4 +105,4 @@
|
|||
|
||||
.vc-addon-footer {
|
||||
font-size: small;
|
||||
}
|
||||
}
|
||||
|
|
@ -8,7 +8,6 @@ import "./styles.css";
|
|||
|
||||
import { Settings, useSettings } from "@api/Settings";
|
||||
import { BaseText } from "@components/BaseText";
|
||||
import { Button } from "@components/Button";
|
||||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { PluginDependencyList } from "@components/settings/tabs/plugins";
|
||||
import { PluginCard } from "@components/settings/tabs/plugins/PluginCard";
|
||||
|
|
@ -17,7 +16,7 @@ import { classNameFactory } from "@utils/css";
|
|||
import { useForceUpdater } from "@utils/react";
|
||||
import { RenderModalProps } from "@vencord/discord-types";
|
||||
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 Plugins from "~plugins";
|
||||
|
|
@ -133,44 +132,25 @@ function NewPluginsModal({ modalProps, newPlugins, newSettings }: ModalComponent
|
|||
</BaseText>
|
||||
</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")}>
|
||||
{pluginCards}
|
||||
{requiredPluginCards}
|
||||
</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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue