修改md文档图片尺寸被拉伸问题
This commit is contained in:
+1
-1
@@ -504,6 +504,7 @@ code, .md code { font-family: var(--mono); font-size: .86em; color: var(--accent
|
||||
.binary { padding: 56px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
|
||||
|
||||
.md { padding: 12px 40px 40px; font-size: 15px; line-height: 1.85; color: var(--soft); }
|
||||
.md img { max-width: 100%; height: auto; }
|
||||
.md h1 { font-size: 30px; margin: 24px 0 18px; color: var(--text); letter-spacing: -0.02em; }
|
||||
.md h2 { font-size: 21px; margin: 40px 0 14px; color: var(--text); }
|
||||
.md a { color: var(--accent); }
|
||||
@@ -1109,7 +1110,6 @@ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
||||
.filterbar #type-pills .pill-btn { flex: 0 0 auto; }
|
||||
.lab-list { scrollbar-width: none; }
|
||||
.md pre { max-width: 100%; }
|
||||
.md img { max-width: 100%; height: auto; }
|
||||
.md table { display: block; overflow-x: auto; }
|
||||
}
|
||||
html.ai-locked, html.ai-locked body { overflow: hidden; }
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
{ id: 'workspace', label: '我的', href: '/workspace/' },
|
||||
];
|
||||
var p = location.pathname;
|
||||
var active = /^\/(explore|project)/.test(p) ? 'explore' : /^\/studio/.test(p) ? 'studio' : /^\/pcb/.test(p) ? 'pcb' : /^\/workspace/.test(p) ? 'workspace' : 'home';
|
||||
var active = /^\/(explore|project)/.test(p) ? 'explore' : /^\/studio/.test(p) ? 'studio' : /^\/cad/.test(p) ? 'cad' : /^\/pcb/.test(p) ? 'pcb' : /^\/workspace/.test(p) ? 'workspace' : 'home';
|
||||
var overlay = active === 'studio';
|
||||
var svg = function (path, size) {
|
||||
return '<svg class="ic" width="' + size + '" height="' + size + '" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">' + path + '</svg>';
|
||||
|
||||
Reference in New Issue
Block a user