Spaces:
Running
Running
Surf commited on
Commit ·
3d238b4
1
Parent(s): 2ce79ab
修复作品入口与工作台内容层级重叠
Browse files
fanqie/dist/project-integration.js
CHANGED
|
@@ -88,7 +88,7 @@
|
|
| 88 |
var start = document.getElementById('surf-start-writing')
|
| 89 |
if (!start || !nav.contains(start)) {
|
| 90 |
if (start) start.remove()
|
| 91 |
-
start = navButton('
|
| 92 |
start.id = 'surf-start-writing'
|
| 93 |
start.addEventListener('click', function () { setHash('projects') })
|
| 94 |
nav.appendChild(start)
|
|
@@ -102,7 +102,7 @@
|
|
| 102 |
list.className = 'mt-3 border-t border-border pt-3'
|
| 103 |
var title = document.createElement('div')
|
| 104 |
title.className = 'mb-2 px-3 text-[11px] font-bold text-muted-foreground'
|
| 105 |
-
title.textContent = '
|
| 106 |
list.appendChild(title)
|
| 107 |
var anchor = nav.nextElementSibling
|
| 108 |
aside.insertBefore(list, anchor || null)
|
|
@@ -484,7 +484,9 @@
|
|
| 484 |
|
| 485 |
var css = document.createElement('style')
|
| 486 |
css.textContent = [
|
| 487 |
-
'.surf-project-panel{display:none;position:fixed;z-index:
|
|
|
|
|
|
|
| 488 |
'body.surf-project-open{overflow:hidden}',
|
| 489 |
'.sp-shell{max-width:1360px;margin:0 auto;padding:28px clamp(16px,4vw,48px) 56px;min-height:100vh}',
|
| 490 |
'.sp-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid hsl(var(--border))}',
|
|
|
|
| 88 |
var start = document.getElementById('surf-start-writing')
|
| 89 |
if (!start || !nav.contains(start)) {
|
| 90 |
if (start) start.remove()
|
| 91 |
+
start = navButton('作品工作台', '✍️')
|
| 92 |
start.id = 'surf-start-writing'
|
| 93 |
start.addEventListener('click', function () { setHash('projects') })
|
| 94 |
nav.appendChild(start)
|
|
|
|
| 102 |
list.className = 'mt-3 border-t border-border pt-3'
|
| 103 |
var title = document.createElement('div')
|
| 104 |
title.className = 'mb-2 px-3 text-[11px] font-bold text-muted-foreground'
|
| 105 |
+
title.textContent = '最近作品'
|
| 106 |
list.appendChild(title)
|
| 107 |
var anchor = nav.nextElementSibling
|
| 108 |
aside.insertBefore(list, anchor || null)
|
|
|
|
| 484 |
|
| 485 |
var css = document.createElement('style')
|
| 486 |
css.textContent = [
|
| 487 |
+
'.surf-project-panel{display:none;position:fixed;z-index:2147483647;inset:0;overflow:auto;background:#0f1117;color:hsl(var(--foreground));isolation:isolate;pointer-events:auto;}',
|
| 488 |
+
'#surf-project-list{display:block;position:relative;clear:both;isolation:isolate;}',
|
| 489 |
+
'#surf-project-list button{position:relative;z-index:1;line-height:1.35;}',
|
| 490 |
'body.surf-project-open{overflow:hidden}',
|
| 491 |
'.sp-shell{max-width:1360px;margin:0 auto;padding:28px clamp(16px,4vw,48px) 56px;min-height:100vh}',
|
| 492 |
'.sp-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid hsl(var(--border))}',
|