Merge branch 'dev'
This commit is contained in:
commit
ed88103bbc
|
|
@ -702,6 +702,7 @@ const THREAD_CSS = `
|
|||
.thread-image-preview { border-radius: 8px; overflow: hidden; border: 1px solid #334155; }
|
||||
.thread-image-preview[hidden] { display: none; }
|
||||
.thread-image-preview img { display: block; max-width: 200px; height: auto; }
|
||||
#share-link-area { grid-column: 1 / -1; }
|
||||
.thread-share-link {
|
||||
display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem;
|
||||
background: rgba(99,102,241,0.1); border: 1px solid #6366f1; border-radius: 8px;
|
||||
|
|
@ -818,7 +819,9 @@ function renderThreadBuilderPage(space: string, threadData?: ThreadData | null):
|
|||
</div>
|
||||
</div>
|
||||
<script type="module">
|
||||
const base = window.__BASE_PATH__ || './';
|
||||
// Derive base from actual URL — bare-domain rewrites inject /demo/ which isn't in the browser path
|
||||
const declared = window.__BASE_PATH__ || './';
|
||||
const base = window.location.pathname.startsWith(declared) ? declared : declared.replace(/^\\/[^\\/]+/, '');
|
||||
let currentThreadId = null;
|
||||
let autoSaveTimer = null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue