설정과 모바일 동선 정리
This commit is contained in:
@@ -367,11 +367,6 @@ function closeItemContextMenu() {
|
||||
}
|
||||
}
|
||||
|
||||
function scrollWorkspaceBodyToTop() {
|
||||
const workspaceBody = document.querySelector('.workspaceBody')
|
||||
workspaceBody?.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||
}
|
||||
|
||||
function updateEditorSidebarMaxHeight() {
|
||||
if (typeof window === 'undefined' || !sidebarEl.value) return
|
||||
const bottomGap = 14
|
||||
@@ -1104,6 +1099,11 @@ function confirmNavigationDiscard() {
|
||||
router.push(nextPath)
|
||||
}
|
||||
|
||||
function openTemplateTopic() {
|
||||
if (!templateId.value) return
|
||||
requestEditorNavigation(topicPath(templateId.value))
|
||||
}
|
||||
|
||||
function openSourceTierList() {
|
||||
if (!sourceTierListId.value) return
|
||||
requestEditorNavigation(editorPath(templateId.value, sourceTierListId.value))
|
||||
@@ -1535,7 +1535,7 @@ onUnmounted(() => {
|
||||
|
||||
<div v-if="isNavigationConfirmModalOpen" class="modalOverlay" @click.self="closeNavigationConfirmModal">
|
||||
<div class="modalCard" role="dialog" aria-modal="true" aria-labelledby="navigationConfirmTitle">
|
||||
<div id="navigationConfirmTitle" class="modalCard__title">원본 티어표로 이동</div>
|
||||
<div id="navigationConfirmTitle" class="modalCard__title">다른 화면으로 이동</div>
|
||||
<div class="modalCard__desc">
|
||||
아직 저장하지 않은 수정 내용이 있어요. 이대로 이동하면 현재 변경 내용은 사라집니다.
|
||||
</div>
|
||||
@@ -1656,9 +1656,9 @@ onUnmounted(() => {
|
||||
<button
|
||||
class="editorMain__title editorMain__titleButton"
|
||||
type="button"
|
||||
title="본문을 화면 위로 이동"
|
||||
@click="scrollWorkspaceBodyToTop"
|
||||
@keydown.space.prevent="scrollWorkspaceBodyToTop"
|
||||
title="이 템플릿 화면으로 이동"
|
||||
@click="openTemplateTopic"
|
||||
@keydown.space.prevent="openTemplateTopic"
|
||||
>
|
||||
{{ templateName || templateId }}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user