diff --git a/assets/styles/03-components/article.css b/assets/styles/03-components/article.css index 147b584..add96c1 100644 --- a/assets/styles/03-components/article.css +++ b/assets/styles/03-components/article.css @@ -110,11 +110,7 @@ blockquote p { } .heading-permalink { - float: left; - padding-right: 0; - margin-left: calc(var(--spacing-4) * -1); - line-height: 1.2; - color: var(--color-secondary); + margin-right: var(--spacing-1); } .heading-permalink:hover { @@ -128,6 +124,13 @@ blockquote p { aspect-ratio: 16/9; } +.ql-toolbar { + position: sticky; + top: 80px; + background-color: var(--color-bg); + z-index: 10; +} + .ql-snow .ql-tooltip.ql-image-tooltip { white-space: nowrap; } diff --git a/public/service-worker.js b/public/service-worker.js index 84d1289..91408b2 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -140,6 +140,12 @@ self.addEventListener('fetch', (event) => { // Skip chrome-extension and other non-http requests if (!url.protocol.startsWith('http')) return; + // Exception: Never cache article-editor/edit/{slug} + if (/\/article-editor\/edit\/[^/]+$/.test(url.pathname)) { + event.respondWith(fetch(request)); + return; + } + // Find matching cache strategy const strategy = findCacheStrategy(request.url);