]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/components/topic_summary/topic_summary.svelte
Don't remember what this WIP was about
[rbdr/forum] / src / lib / components / topic_summary / topic_summary.svelte
index 337a064e3a9f8f1aed9dc66d4394bd55297c5769..8c4df4d7502be2827f0ed4a5cb8e1d26173e9e2d 100644 (file)
@@ -6,13 +6,17 @@
        import { _ } from 'svelte-i18n';
        import { readableTime } from '$lib/utils/readable_time';
 
-       $: remainingTime = topic.updated_at + topic.ttl - Date.now();
+       $: remainingTime = new Date(topic.updated_at).getTime() + topic.ttl - Date.now();
        $: remaining = readableTime(remainingTime);
 </script>
 
 <li class="h-entry" title={$_('topic.title')}>
        <span class="p-name">
-               <a class="u-url u-uid" title={$_('topic.permalink_title')} href="/t/{topic.id}">
+               <a
+                       class="u-url u-uid underline text-blue-600 visited:text-purple-500"
+                       title={$_('topic.permalink_title')}
+                       href="/t/{topic.id}"
+               >
                        {topic.title}
                </a></span
        >
@@ -22,6 +26,3 @@
                })})
        </span>
 </li>
-
-<style>
-</style>