Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix settings icons not being centered and plugin settings button not having propper styling #184

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions assets/src/tabs/Plugins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const EditPlugin: React.FC<EditPluginProps> = ({ plugin }) => {
}

return (
<DialogButton className="_3epr8QYWw_FqFgMx38YEEm" style={{marginTop: 0, marginLeft: 0, marginRight: 15}}>
<IconsModule.Settings />
<DialogButton className="_3epr8QYWw_FqFgMx38YEEm millenniumIconButton">
<IconsModule.Settings height="16" />
</DialogButton>
)
}
Expand Down Expand Up @@ -80,6 +80,18 @@ const PluginViewModal: React.FC = () => {

return (
<>
<style>
{`
button.millenniumIconButton {
padding: 9px 10px !important;
margin: 0 !important;
margin-right: 10px !important;
display: flex;
width: auto;
}
`}
</style>

<DialogHeader>{locale.settingsPanelPlugins}</DialogHeader>
<DialogBody className={classMap.SettingsDialogBodyFade}>
{plugins.map((plugin: PluginComponent, index: number) => (
Expand Down
16 changes: 12 additions & 4 deletions assets/src/tabs/Themes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ const RenderEditTheme: React.FC<EditThemeProps> = ({ active }) => {
return (
<DialogButton
onClick={() => ThemeSettings(active)}
style={{margin: "0", padding: "0px 10px", marginRight: "10px"}}
className="_3epr8QYWw_FqFgMx38YEEm millenniumIconButton"
>
<IconsModule.Settings height="16" />
Expand Down Expand Up @@ -206,7 +205,18 @@ const ThemeViewModal: React.FC = () => {

return (
<>
<style>{`.DialogDropDown._DialogInputContainer.Panel.Focusable { min-width: max-content !important; }`}</style>
<style>
{`
.DialogDropDown._DialogInputContainer.Panel.Focusable { min-width: max-content !important; }
button.millenniumIconButton {
padding: 9px 10px !important;
margin: 0 !important;
margin-right: 10px !important;
display: flex;
width: auto;
}
`}
</style>

<DialogHeader>{locale.settingsPanelThemes}</DialogHeader>
<DialogBody className={classMap.SettingsDialogBodyFade}>
Expand All @@ -227,7 +237,6 @@ const ThemeViewModal: React.FC = () => {
{!pluginSelf.isDefaultTheme && (
<DialogButton
onClick={() => SetupAboutRenderer(active)}
style={{ margin: "0", padding: "0px 10px", marginRight: "10px" }}
className="_3epr8QYWw_FqFgMx38YEEm millenniumIconButton"
>
<IconsModule.Information height="16" />
Expand All @@ -236,7 +245,6 @@ const ThemeViewModal: React.FC = () => {

<DialogButton
onClick={OpenThemesFolder}
style={{ margin: "0", padding: "0px 10px", marginRight: "10px" }}
className="_3epr8QYWw_FqFgMx38YEEm millenniumIconButton"
>
<CustomIcons.Folder />
Expand Down