Skip to content

Commit

Permalink
change style for repo extensions list
Browse files Browse the repository at this point in the history
  • Loading branch information
sehnryr committed Nov 7, 2024
1 parent e53b55c commit 698ff91
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src-www/pages/Extensions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,35 @@ export default function Extensions() {
}, [repositoryUrl]);

const manifestList = manifests.map((manifest: Manifest) => (
<li key={manifest.id} className="card card-compact card-side">
<figure>
<li key={manifest.id} className="flex items-center gap-2">
<figure className="size-16">
<img
src={repositoryUrl + "/icons/" + manifest.icon}
alt={manifest.name}
/>
</figure>
<div className="card-body">
<h2 className="card-title">{manifest.name}</h2>
<div>
<h2 className="">{manifest.name}</h2>
<p>
{manifest.version} {manifest.language}
{manifest.nsfw && <span className="text-error">{" "}+18</span>}
</p>
<div className="card-actions">
<button
className="btn btn-success"
onClick={() =>
installExtension(repositoryUrl, manifest)}
>
Install
</button>
<button
className="btn btn-error"
onClick={() =>
uninstallExtension(manifest.id)}
>
Uninstall
</button>
</div>
</div>
<div className="flex gap-2 ml-auto">
<button
className="btn btn-success"
onClick={() =>
installExtension(repositoryUrl, manifest)}
>
Install
</button>
<button
className="btn btn-error"
onClick={() =>
uninstallExtension(manifest.id)}
>
Uninstall
</button>
</div>
</li>
));
Expand All @@ -71,7 +71,7 @@ export default function Extensions() {
value={repositoryUrl}
onChange={(e) => setRepositoryUrl(e.target.value)}
/>
<ul>
<ul className="py-3">
{manifestList}
</ul>
</>
Expand Down

0 comments on commit 698ff91

Please sign in to comment.