diff --git a/front/js/svelte/content/elements/Reference.svelte b/front/js/svelte/content/elements/Reference.svelte
index 9a0414c..7ac3b33 100644
--- a/front/js/svelte/content/elements/Reference.svelte
+++ b/front/js/svelte/content/elements/Reference.svelte
@@ -18,7 +18,7 @@
{#each recordEdges as recordEdge}
-
+
{/each}
diff --git a/front/js/svelte/records/PreviewCardSmall.svelte b/front/js/svelte/records/PreviewCardSmall.svelte
index c346b3a..6b83a0d 100644
--- a/front/js/svelte/records/PreviewCardSmall.svelte
+++ b/front/js/svelte/records/PreviewCardSmall.svelte
@@ -13,11 +13,8 @@
{#if record?.data}
{title}
diff --git a/front/sass/_table.scss b/front/sass/_table.scss
index 2011a75..d7f1bd4 100644
--- a/front/sass/_table.scss
+++ b/front/sass/_table.scss
@@ -113,6 +113,18 @@
.field-ui-number {
text-align: right;
}
+
+ .references{
+ display: flex;
+ gap: 4px;
+
+ .reference{
+ font-size: 13px;
+ border-radius: 12px;
+ background: var(--p30);
+ padding: 1px 5px;
+ }
+ }
}
.file-table-row {
diff --git a/src/macros.php b/src/macros.php
index b659b57..0931762 100644
--- a/src/macros.php
+++ b/src/macros.php
@@ -45,3 +45,21 @@ if (!function_exists('schemas_path')) {
return storage_path("lucent/lucent.schemas.json");
}
}
+
+if (!function_exists('lucent_file')) {
+ function lucent_file(\Lucent\Record\QueryRecord $record): string
+ {
+ $path = $record->_file->path;
+ return app()->make(\Lucent\Channel\ChannelService::class)->channel->disks[$record->_file->disk] ."/". $path;
+ }
+}
+
+if (!function_exists('lucent_image')) {
+ function lucent_image(\Lucent\Record\QueryRecord $record, string $template): string
+ {
+ $path = $record->_file->path;
+ return app()->make(\Lucent\Channel\ChannelService::class)->channel->disks[$record->_file->disk] . "/templates/$template/$path";
+ }
+}
+
+