Browse Source

made cards and card/detail images uniform

master
Silberengel 8 months ago
parent
commit
7a4891d79e
  1. 4
      src/lib/components/PublicationHeader.svelte
  2. 4
      src/lib/components/util/CardActions.svelte
  3. 19
      src/lib/consts.ts

4
src/lib/components/PublicationHeader.svelte

@ -47,9 +47,9 @@ @@ -47,9 +47,9 @@
</script>
{#if title != null && href != null}
<Card class='ArticleBox card-leather max-w-md flex flex-row space-x-2'>
<Card class='ArticleBox card-leather max-w-md h-48 flex flex-row items-center space-x-2'>
{#if image}
<div class="flex col justify-center align-middle max-h-36 max-w-24 overflow-hidden">
<div class="flex col justify-center align-middle h-32 w-24 min-w-20 max-w-24 overflow-hidden">
<Img src={image} class="rounded w-full h-full object-cover"/>
</div>
{/if}

4
src/lib/components/util/CardActions.svelte

@ -157,8 +157,8 @@ @@ -157,8 +157,8 @@
<Modal class='modal-leather' title='Publication details' bind:open={detailsModalOpen} autoclose outsideclose size='sm'>
<div class="flex flex-row space-x-4">
{#if image}
<div class="flex col">
<img src={image} alt="Publication cover" class="w-32 h-32 object-cover rounded" />
<div class="flex col justify-center align-middle h-32 w-24 min-w-20 max-w-24 overflow-hidden">
<img src={image} alt="Publication cover" class="rounded w-full h-full object-cover" />
</div>
{/if}
<div class="flex flex-col col space-y-5 justify-center align-middle">

19
src/lib/consts.ts

@ -2,16 +2,25 @@ export const wikiKind = 30818; @@ -2,16 +2,25 @@ export const wikiKind = 30818;
export const indexKind = 30040;
export const zettelKinds = [ 30041, 30818 ];
export const communityRelay = [ 'wss://theforest.nostr1.com' ];
export const standardRelays = [ 'wss://thecitadel.nostr1.com', 'wss://theforest.nostr1.com' ];
export const standardRelays = [
'wss://thecitadel.nostr1.com',
'wss://theforest.nostr1.com',
'wss://profiles.nostr1.com',
'wss://gitcitadel.nostr1.com',
//'wss://thecitadel.gitcitadel.eu',
//'wss://theforest.gitcitadel.eu',
];
export const fallbackRelays = [
'wss://purplepag.es',
'wss://indexer.coracle.social',
'wss://relay.noswhere.com',
'wss://relay.damus.io',
'wss://relay.nostr.band',
'wss://relay.lumina.rocks',
'wss://aggr.nostr.land',
'wss://nostr.wine',
'wss://nostr.land'
'wss://nostr.land',
'wss://nostr.sovbit.host',
'wss://freelay.sovbit.host',
'wss://nostr21.com',
'wss://greensoul.space',
];
export enum FeedType {

Loading…
Cancel
Save