Skip to content

Commit

Permalink
problem: layout not good
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Jan 19, 2024
1 parent 40a72aa commit 1217a88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/rockets/RocketItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{#if rocket}
<Tile style="padding:0;margin-top:6px;">
<Row>
<Column lg={4}
<Column lg={5}
><Tile
><h3>
{#if requiresConsensus}<Tag
Expand All @@ -39,7 +39,7 @@
<CommentUser pubkey={rocket.CreatedBy} /></Tile
></Column
>
<Column lg={4}
<Column lg={3}
><Tile
><RocketTag type="problem-tag" {rocket} />
<Tag
Expand Down
11 changes: 3 additions & 8 deletions src/components/rockets/ViewAllRockets.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<script>
import { base } from "$app/paths";
import { consensusTipState } from "$lib/stores/nostrocket_state/master_state";
import {
Column,
Row,
StructuredList,
StructuredListBody,
} from "carbon-components-svelte";
import { Rocket } from "carbon-icons-svelte";
import { derived } from "svelte/store";
import RocketItem from "./RocketItem.svelte";
import { Button } from "carbon-components-svelte";
import { goto } from "$app/navigation";
let sortedRockets = derived(consensusTipState, ($current) => {
let rockets = [...$current.RocketMap];
Expand All @@ -20,8 +16,7 @@
return rockets;
});
</script>

<a href={base + `/rockets/ignition`}>LAUNCH A NEW ROCKET NOW <Rocket /></a>
<Button icon={Rocket} on:click={()=>{goto(`${base}/rockets/ignition`)}}>LAUNCH A NEW ROCKET NOW</Button>
{#each [...$sortedRockets] as [key, rocket]}
<RocketItem {rocket} />
{/each}

0 comments on commit 1217a88

Please sign in to comment.