mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
lint
This commit is contained in:
parent
740d3ffaac
commit
ce95dbb032
2 changed files with 12 additions and 8 deletions
|
@ -111,7 +111,11 @@ export const ThemeCard = ({ theme, onListUpdated }: ThemeCardProps) => {
|
||||||
|
|
||||||
<div className="theme-card__actions__right">
|
<div className="theme-card__actions__right">
|
||||||
<Button
|
<Button
|
||||||
className={theme.code.startsWith("https://hydrathemes.shop/") ? "theme-card__actions__right--external" : ""}
|
className={
|
||||||
|
theme.code.startsWith("https://hydrathemes.shop/")
|
||||||
|
? "theme-card__actions__right--external"
|
||||||
|
: ""
|
||||||
|
}
|
||||||
onClick={() => window.electron.openEditorWindow(theme.id)}
|
onClick={() => window.electron.openEditorWindow(theme.id)}
|
||||||
title={t("edit_theme")}
|
title={t("edit_theme")}
|
||||||
theme="outline"
|
theme="outline"
|
||||||
|
|
|
@ -86,13 +86,13 @@ export default function ThemeEditor() {
|
||||||
defaultLanguage="css"
|
defaultLanguage="css"
|
||||||
value={code}
|
value={code}
|
||||||
onChange={handleEditorChange}
|
onChange={handleEditorChange}
|
||||||
options={{
|
options={{
|
||||||
minimap: { enabled: false },
|
minimap: { enabled: false },
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
lineNumbers: "on",
|
lineNumbers: "on",
|
||||||
wordWrap: "on",
|
wordWrap: "on",
|
||||||
automaticLayout: true,
|
automaticLayout: true,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="theme-editor__footer">
|
<div className="theme-editor__footer">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue