2023-10-02 23:10:49 +03:00
|
|
|
<script>
|
2026-05-06 21:43:13 +03:00
|
|
|
import { getContext } from "svelte";
|
2023-10-02 23:10:49 +03:00
|
|
|
|
|
|
|
|
const channel = getContext("channel");
|
|
|
|
|
export let record;
|
2026-05-06 21:43:13 +03:00
|
|
|
$: title = record.data.name;
|
2023-10-02 23:10:49 +03:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{#if record?.data}
|
2026-05-06 21:43:13 +03:00
|
|
|
<a href="{channel.lucentUrl}/records/{record.id}" {title} class="reference">
|
2023-10-02 23:10:49 +03:00
|
|
|
{title}
|
|
|
|
|
</a>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
a {
|
|
|
|
|
max-width: 200px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
/* color: #fff; */
|
|
|
|
|
}
|
|
|
|
|
</style>
|