Skip to content

Commit

Permalink
fix calc link style
Browse files Browse the repository at this point in the history
  • Loading branch information
YukikoNoda committed Jul 24, 2023
1 parent de90fd3 commit 539a12e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
1 change: 1 addition & 0 deletions lib/TextWithIcon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
<img class="icon" src={icon} alt={iconAlt ?? ""} />
{/if}
<span>{text}</span>
<slot />
{/if}
13 changes: 7 additions & 6 deletions stanzas/heatmap-table/TableRowCalculation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
class="link-calc compound"
>
{compound}
<Fa
icon={faCircleChevronRight}
size="90%"
color="var(--calc-color)"
/>
</a>
</li>
{/each}
Expand All @@ -65,7 +60,13 @@
iconAlt={calcName}
slot="trigger"
icon={calculationType(calcName).src}
/>
>
<Fa
icon={faCircleChevronRight}
size="90%"
color="var(--calc-color)"
/>
</TextWithIcon>
</Popup>
</li>
{/each}
Expand Down
13 changes: 7 additions & 6 deletions stanzas/search-disease/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@
href={`${window.location.origin}/dev/calculation/details?assembly=${assembly}&genename=${genename}&calculation_type=${calcName}&Compound_ID=${Compound_ID}&PDB_ID=${PDB_ID}&variant=${variant}`}
>
{upperFirst(Compound_ID)}
<Fa
icon={faCircleChevronRight}
size="90%"
color="var(--calc-color)"
/>
</a>
</li>
{/each}
Expand All @@ -113,7 +108,13 @@
iconAlt={calcName}
slot="trigger"
icon={drugIcon}
/>
>
<Fa
icon={faCircleChevronRight}
size="90%"
color="var(--calc-color)"
/>
</TextWithIcon>
</Popup>
</li>
{/each}
Expand Down
13 changes: 7 additions & 6 deletions stanzas/search-variant/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@
class="link-calc"
>
{upperFirst(Compound_ID)}
<Fa
icon={faCircleChevronRight}
size="90%"
color="var(--calc-color)"
/>
</a>
</li>
{/each}
Expand All @@ -102,7 +97,13 @@
iconAlt={calcName}
slot="trigger"
icon={drugIcon}
/>
>
<Fa
icon={faCircleChevronRight}
size="90%"
color="var(--calc-color)"
/>
</TextWithIcon>
</Popup>
</li>
{/each}
Expand Down

0 comments on commit 539a12e

Please sign in to comment.