Hide font size in markdown preview
This commit is contained in:
parent
6127e43113
commit
d8e76003f1
3 changed files with 10 additions and 4 deletions
|
|
@ -219,8 +219,8 @@
|
||||||
}, { once: true });
|
}, { once: true });
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<link rel="stylesheet" href="/static/style.css?v=20260630emailhtmlquote">
|
<link rel="stylesheet" href="/static/style.css?v=20260630mdfontsize">
|
||||||
<link rel="modulepreload" href="/static/app.js?v=20260630emailhtmlquote">
|
<link rel="modulepreload" href="/static/app.js?v=20260630mdfontsize">
|
||||||
<link rel="modulepreload" href="/static/js/chat.js">
|
<link rel="modulepreload" href="/static/js/chat.js">
|
||||||
<link rel="modulepreload" href="/static/js/ui.js">
|
<link rel="modulepreload" href="/static/js/ui.js">
|
||||||
<link rel="modulepreload" href="/static/js/sessions.js">
|
<link rel="modulepreload" href="/static/js/sessions.js">
|
||||||
|
|
@ -2512,7 +2512,7 @@
|
||||||
<script type="module" src="/static/js/settings.js"></script>
|
<script type="module" src="/static/js/settings.js"></script>
|
||||||
<script type="module" src="/static/js/admin.js"></script>
|
<script type="module" src="/static/js/admin.js"></script>
|
||||||
<script type="module" src="/static/js/assistant.js"></script>
|
<script type="module" src="/static/js/assistant.js"></script>
|
||||||
<script type="module" src="/static/app.js?v=20260630emailhtmlquote"></script> <!-- app.js must be LAST -->
|
<script type="module" src="/static/app.js?v=20260630mdfontsize"></script> <!-- app.js must be LAST -->
|
||||||
<script type="module" src="/static/js/init.js"></script>
|
<script type="module" src="/static/js/init.js"></script>
|
||||||
<script type="module" src="/static/js/a11y.js"></script>
|
<script type="module" src="/static/js/a11y.js"></script>
|
||||||
<script nonce="{{CSP_NONCE}}">if('serviceWorker' in navigator){navigator.serviceWorker.register('/static/sw.js').catch(()=>{});}</script>
|
<script nonce="{{CSP_NONCE}}">if('serviceWorker' in navigator){navigator.serviceWorker.register('/static/sw.js').catch(()=>{});}</script>
|
||||||
|
|
|
||||||
|
|
@ -2223,6 +2223,12 @@ import { bindMenuDismiss, dismissOrRemove } from './escMenuStack.js';
|
||||||
document.querySelectorAll('.md-toolbar-edit-only').forEach(el => {
|
document.querySelectorAll('.md-toolbar-edit-only').forEach(el => {
|
||||||
el.style.display = (lang === 'markdown' && _mdActive) ? 'none' : '';
|
el.style.display = (lang === 'markdown' && _mdActive) ? 'none' : '';
|
||||||
});
|
});
|
||||||
|
const fsBtn = document.getElementById('doc-fontsize-btn');
|
||||||
|
if (fsBtn) {
|
||||||
|
const doc = activeDocId && docs.get(activeDocId);
|
||||||
|
const isPdfDoc = !!(doc && _isFormBackedDoc(doc.content || ''));
|
||||||
|
fsBtn.style.display = (isPdfDoc || (lang === 'markdown' && _mdActive)) ? 'none' : '';
|
||||||
|
}
|
||||||
const mdToolbar = document.getElementById('doc-md-toolbar');
|
const mdToolbar = document.getElementById('doc-md-toolbar');
|
||||||
if (mdToolbar) {
|
if (mdToolbar) {
|
||||||
mdToolbar.classList.toggle('md-preview-active', lang === 'markdown' && !!_mdActive);
|
mdToolbar.classList.toggle('md-preview-active', lang === 'markdown' && !!_mdActive);
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
// - Other static assets (images/fonts/libs): cache-first with bg refresh.
|
// - Other static assets (images/fonts/libs): cache-first with bg refresh.
|
||||||
// - API / non-GET: never cached.
|
// - API / non-GET: never cached.
|
||||||
// Bump CACHE_NAME whenever the precache list or SW logic changes.
|
// Bump CACHE_NAME whenever the precache list or SW logic changes.
|
||||||
const CACHE_NAME = 'odysseus-v335';
|
const CACHE_NAME = 'odysseus-v336';
|
||||||
|
|
||||||
// Core shell precached on install so repeat opens are instant without any
|
// Core shell precached on install so repeat opens are instant without any
|
||||||
// network wait. Keep this list in sync with the <script type="module"> tags
|
// network wait. Keep this list in sync with the <script type="module"> tags
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue