forked from BRETT/BRETT
Shorten thread route from /thread to /t
All internal links (tiles, prev/next nav, comments, notifications, breadcrumb, dropzone route check) point to /t/<id>. A global route middleware permanently redirects old /thread/<id> URLs including query string and comment anchor. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -11,7 +11,7 @@ const uploading = ref(false)
|
||||
|
||||
// In Threads gilt die Zone nur für die obere Bildschirmhälfte —
|
||||
// die untere Hälfte gehört den Kommentaren (dort Anhänge, sonst nichts)
|
||||
const topHalfOnly = computed(() => route.path.startsWith('/thread/'))
|
||||
const topHalfOnly = computed(() => route.path.startsWith('/t/'))
|
||||
const pointerY = ref(0)
|
||||
const inTopHalf = computed(() => !topHalfOnly.value || pointerY.value < (import.meta.client ? window.innerHeight : 0) / 2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user