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:
@@ -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};
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user