diff --git a/app/client/models/DocPageModel.ts b/app/client/models/DocPageModel.ts index 52dfa4e9..9cc386f8 100644 --- a/app/client/models/DocPageModel.ts +++ b/app/client/models/DocPageModel.ts @@ -240,9 +240,9 @@ export class DocPageModelImpl extends Disposable implements DocPageModel { public updateUrlNoReload( urlId: string, urlOpenMode: OpenDocMode, - options: {removeSlug?: boolean, replaceUrl?: boolean} = {removeSlug: false, replaceUrl: true} + options: {removeSlug?: boolean, replaceUrl?: boolean} = {} ) { - const {removeSlug, replaceUrl} = options; + const {removeSlug = false, replaceUrl = true} = options; const state = urlState().state.get(); const nextState = { ...state, diff --git a/app/client/ui/DocTutorial.css b/app/client/ui/DocTutorial.css index 1dc4e49b..9c7fcf27 100644 --- a/app/client/ui/DocTutorial.css +++ b/app/client/ui/DocTutorial.css @@ -69,6 +69,12 @@ cursor: pointer; } +.doc-tutorial-popup-thumbnail-half-screenshot { + margin-left: auto; + margin-right: auto; + width: 50%; +} + .doc-tutorial-popup-thumbnail img { width: 100%; border: 1px solid var(--grist-theme-tutorials-popup-border, #D9D9D9); diff --git a/app/client/ui/DocTutorialRenderer.ts b/app/client/ui/DocTutorialRenderer.ts index 987139aa..0cecc08f 100644 --- a/app/client/ui/DocTutorialRenderer.ts +++ b/app/client/ui/DocTutorialRenderer.ts @@ -2,15 +2,21 @@ import {marked} from 'marked'; export const renderer = new marked.Renderer(); -renderer.image = (href: string, text: string) => { - return `