diff --git a/css/style.css b/css/style.css index 6529799..cdce34a 100644 --- a/css/style.css +++ b/css/style.css @@ -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; } diff --git a/js/shell.js b/js/shell.js index 6d5e048..58f2b51 100644 --- a/js/shell.js +++ b/js/shell.js @@ -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 '' + path + '';