Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
fc8fa83f
Commit
fc8fa83f
authored
Jan 07, 2026
by
shaw
Browse files
fix(keys): 修复代码框第一行多余空格问题
pre 标签会原样保留内部空白字符,导致 code 标签前的模板缩进 被渲染为实际空格。将 pre/code 标签写在同一行消除此问题。
parent
6dcd9946
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/keys/UseKeyModal.vue
View file @
fc8fa83f
...
@@ -105,10 +105,7 @@
...
@@ -105,10 +105,7 @@
</button>
</button>
</div>
</div>
<!-- Code Content -->
<!-- Code Content -->
<pre
class=
"p-4 text-sm font-mono text-gray-100 overflow-x-auto"
>
<pre
class=
"p-4 text-sm font-mono text-gray-100 overflow-x-auto"
><code
v-if=
"file.highlighted"
v-html=
"file.highlighted"
></code><code
v-else
v-text=
"file.content"
></code></pre>
<code
v-if=
"file.highlighted"
v-html=
"file.highlighted"
></code>
<code
v-else
v-text=
"file.content"
></code>
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment