From f8a95542b165e5069934d1d2b099f300da177cf3 Mon Sep 17 00:00:00 2001 From: nickmilo <35411533+nickmilo@users.noreply.github.com> Date: Sun, 20 Feb 2022 10:39:38 -0800 Subject: [PATCH] v 1.12 fixed widgetBuffer issue --- obsidian.css | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/obsidian.css b/obsidian.css index 4058105..713b95f 100644 --- a/obsidian.css +++ b/obsidian.css @@ -2608,21 +2608,21 @@ span.cm-inline-code:not(.cm-formatting-code) { /*──────────Images──────────*/ -.workspace-leaf-content img:not([width]), -.view-content .markdown-preview-view img { +.workspace-leaf-content img[src]:not([width]), +.view-content .markdown-preview-view img[src] { max-width: 100%; } -.markdown-source-view.is-live-preview img, -.markdown-preview-view img { +.markdown-source-view.is-live-preview img[src], +.markdown-preview-view img[src] { border: 1px solid var(--border-xsm-alt); box-shadow: 0px 4px 6px -1px var(--shadow-xsm); transition: var(--duration-moderate-1) var(--motion-smooth); } -.markdown-source-view.is-live-preview img:hover, -.markdown-preview-view img:hover { +.markdown-source-view.is-live-preview img[src]:hover, +.markdown-preview-view img[src]:hover { box-shadow: var(--shadow-m); transform: translate3d(0, -4px, 0); transition: var(--duration-moderate-1) @@ -6753,4 +6753,5 @@ body:not(.no-custom-icons) svg.wrench-screwdriver-glyph { /* Yesterday Glyph, Calendar with Minus */ body:not(.no-custom-icons) svg.yesterday-glyph { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 24 24' style='fill: rgba(0, 0, 0, 1);transform: ;msFilter:;'%3E%3Cpath d='M8 13h8v2H8z'%3E%3C/path%3E%3Cpath d='M19 4h-2V2h-2v2H9V2H7v2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zm.002 16H5V8h14l.002 12z'%3E%3C/path%3E%3C/svg%3E"); -} \ No newline at end of file +} +