Skip to content

Commit

Permalink
Minor layout change in Authors/Person widget
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-koenig committed Feb 23, 2024
1 parent e228dd4 commit c9f8b96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/components/isa/generic/PersonOrcid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,12 @@ onMount(() => {
</script>

<section>
<section style="position: relative;">

<h5 style="margin-bottom: 10px; padding: 0;">ORCID of this person</h5>

{#if orcid}
<div>
<a target="_blank" href="{orcid}">{orcid}</a> <button on:click|preventDefault={() => remove()} class="btn btn-warning" style="margin-left: 20px;">Remove ORCID</button>
</div>
<a target="_blank" href="{orcid}">{orcid}</a> <button on:click|preventDefault={() => remove()} class="btn btn-warning" style="position: absolute; top: 8px; right: 10px; margin:0;">Remove ORCID</button>
{:else}

<Svelecte name="selection"
Expand Down
3 changes: 2 additions & 1 deletion src/components/isa/generic/PersonRoles.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ onMount(() => {
{:else}
<p style="margin-bottom: 0;">No contributions</p>
{/if}

{:else}

<button class="btn btn-secondary" style="position: absolute; top: 8px; left: 250px; margin:0;" on:click={() => showRolesDescriptions = !showRolesDescriptions}>{showRolesDescriptions == true ? 'Hide' : 'Show'} role descriptions</button>
<button class="btn btn-secondary" style="position: absolute; top: 8px; right: 10px; margin:0;" on:click={() => showRolesDescriptions = !showRolesDescriptions}>{showRolesDescriptions == true ? 'Hide' : 'Show'} role descriptions</button>

<div id="roles">
{#each rolesAvailable as role}
Expand Down

0 comments on commit c9f8b96

Please sign in to comment.