Browse Source

Publishing

imwald
Nuša Pukšič 3 months ago
parent
commit
64c5ff3fcc
  1. 13
      assets/styles/03-components/article.css
  2. 6
      public/service-worker.js

13
assets/styles/03-components/article.css

@ -110,11 +110,7 @@ blockquote p { @@ -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 { @@ -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;
}

6
public/service-worker.js

@ -140,6 +140,12 @@ self.addEventListener('fetch', (event) => { @@ -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);

Loading…
Cancel
Save