diff --git a/resources/views/proposals/show.blade.php b/resources/views/proposals/show.blade.php index c165a1d..cb11b52 100644 --- a/resources/views/proposals/show.blade.php +++ b/resources/views/proposals/show.blade.php @@ -196,6 +196,7 @@ backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); border-radius: 16px 16px 0 0; + position: relative; } .dark .mermaid-toolbar { background: rgba(15, 23, 42, 0.9); @@ -207,8 +208,32 @@ letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; - margin-right: 4px; - flex: 1; + flex-shrink: 0; + } + .mermaid-toolbar-hint { + position: absolute; + left: 50%; + transform: translateX(-50%); + font-size: 0.72rem; + font-weight: 600; + color: #64748b; + white-space: nowrap; + pointer-events: none; + transition: opacity 0.2s ease; + } + .dark .mermaid-toolbar-hint { + color: #94a3b8; + } + .mermaid-container.mermaid-active .mermaid-toolbar-hint { + opacity: 0; + visibility: hidden; + } + .mermaid-toolbar-controls { + display: flex; + align-items: center; + gap: 4px; + margin-left: auto; + flex-shrink: 0; } .mermaid-zoom-btn { display: inline-flex; @@ -273,34 +298,6 @@ .mermaid-container.mermaid-active { box-shadow: 0 0 0 2px var(--accent-color, #4f46e5); } - .mermaid-canvas-hint { - position: absolute; - inset: 0; - z-index: 2; - display: flex; - align-items: center; - justify-content: center; - pointer-events: none; - transition: opacity 0.2s ease; - } - .mermaid-canvas-hint span { - font-size: 0.75rem; - font-weight: 600; - color: #64748b; - background: rgba(255, 255, 255, 0.9); - border: 1px solid rgba(0, 0, 0, 0.08); - padding: 6px 14px; - border-radius: 999px; - } - .dark .mermaid-canvas-hint span { - color: #94a3b8; - background: rgba(30, 41, 59, 0.9); - border-color: rgba(255, 255, 255, 0.08); - } - .mermaid-container.mermaid-active .mermaid-canvas-hint { - opacity: 0; - visibility: hidden; - } /* Fullscreen overlay */ .mermaid-fullscreen-overlay { @@ -1049,29 +1046,28 @@ toolbar.className = 'mermaid-toolbar'; toolbar.innerHTML = ` - - 100% - - - + +
`; // Canvas wrapper const canvas = document.createElement('div'); canvas.className = 'mermaid-canvas'; canvas.id = 'mermaid-canvas-' + index; - - const hint = document.createElement('div'); - hint.className = 'mermaid-canvas-hint'; - hint.innerHTML = 'Zoom ve kaydırma için tıklayın'; const graphDiv = document.createElement('div'); graphDiv.className = 'mermaid w-full'; @@ -1079,7 +1075,6 @@ graphDiv.textContent = rawMermaid; canvas.appendChild(graphDiv); - canvas.appendChild(hint); wrapper.appendChild(toolbar); wrapper.appendChild(canvas); preContainer.parentNode.replaceChild(wrapper, preContainer);