The BB Posts have been updated to use a new page the Post. Seems to be working well. Wrapping up for the day.

This commit is contained in:
Scott Idem
2025-06-30 18:40:32 -04:00
parent ec7ec7b566
commit 238416d903
7 changed files with 76 additions and 19 deletions

View File

@@ -157,7 +157,8 @@ $effect(() => {
if (!page.url.searchParams.get('post_id')) {
const url = new URL(location);
url.searchParams.set('post_id', $idaa_slct.post_id);
// url.searchParams.set('post_id', $idaa_slct.post_id);
url.searchParams.delete('post_id');
history.pushState({}, '', url);
let message = {'post_id': $idaa_slct.post_id};

View File

@@ -121,7 +121,6 @@ onDestroy(() => {
{#if $lq__post_obj?.topic_id}<span class="badge badge-info preset-tonal-secondary"><span class="fas fa-user-md m-1"></span> {$lq__post_obj?.topic_name}</span>{/if}
<span class="float-right flex flex-row flex-wrap gap-1 items-center justify-end">
{#if $lq__post_obj?.topic_name}
<span class="badge badge-info preset-tonal-tertiary"><span class="fas fa-user-md m-1"></span> {$lq__post_obj?.topic_name}</span>
{/if}

View File

@@ -35,9 +35,9 @@ $effect(() => {
if (browser && $lq__post_obj?.post_id) {
document.body.scrollIntoView();
const url = new URL(location);
url.searchParams.set('post_id', $lq__post_obj?.post_id);
history.pushState({}, '', url);
// const url = new URL(location);
// url.searchParams.set('post_id', $lq__post_obj?.post_id);
// history.pushState({}, '', url);
}
});

View File

@@ -36,8 +36,8 @@ onMount(() => {
>
<header class="ae_header">
<h3 class="post__title flex flex-row gap-2 items-center h3 border-b border-gray-200 w-full">
<span class="post__title">
<h3 class="post__name flex flex-row gap-2 items-center h3 border-b border-gray-200 w-full">
<span class="post__name">
<span class="fas fa-comment-alt m-1"></span>
{@html idaa_post_obj.title}
</span>