Skip to content

Commit

Permalink
[#72191] simplify templates UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin authored and mgielda committed Mar 4, 2025
1 parent 79458ba commit a148aba
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 289 deletions.
57 changes: 0 additions & 57 deletions src/components/Modal.jsx

This file was deleted.

15 changes: 3 additions & 12 deletions src/components/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@ import { MystState } from "../mystState";
import { Compartment } from "@codemirror/state";
import { useSignalEffect } from "@preact/signals";

const Dropdown = styled.div`
const SettingsList = styled.div`
width: 240px;
padding: 20px;
border-radius: var(--border-radius);
box-shadow: 4px 4px 10px var(--gray-600);
background: white;
display: none;
&:hover {
display: block;
}
h1 {
font-size: 20px;
Expand Down Expand Up @@ -106,7 +97,7 @@ const Settings = () => {
});

return (
<Dropdown>
<SettingsList>
<h1>Settings</h1>
<ul>
{userSettings.value.map((s) => (
Expand All @@ -116,7 +107,7 @@ const Settings = () => {
</li>
))}
</ul>
</Dropdown>
</SettingsList>
);
};

Expand Down
213 changes: 0 additions & 213 deletions src/components/TemplateManager.jsx

This file was deleted.

Loading

0 comments on commit a148aba

Please sign in to comment.