diff --git a/manifest.json b/manifest.json index 28cec9d..fa1a8b0 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Haze Note", - "version": "0.1.19", + "version": "0.1.20", "minAppVersion": "1.9.0", "author": "jn" } diff --git a/src/theme.template.css b/src/theme.template.css index f68a4da..a887ccc 100644 --- a/src/theme.template.css +++ b/src/theme.template.css @@ -1,5 +1,5 @@ /* -Haze Note 0.1.19 +Haze Note 0.1.20 Personal macOS-first Obsidian theme by jn. No remote assets. No sound effects. */ @@ -969,6 +969,39 @@ body:not(.is-mobile) .workspace-leaf-content .view-header { margin: 0 !important; } +/* Obsidian 1.12 Chinese UI renders the Aa toggle as an unlabeled sibling of + the search field. Attribute selectors cannot reach it, so reserve space in + the input itself and anchor that sibling within the same input row. */ +.workspace-leaf-content[data-type="search"] .search-input-container { + position: relative !important; + display: block !important; + min-height: var(--input-height) !important; +} + +.workspace-leaf-content[data-type="search"] .search-input-container > input { + display: block !important; + width: 100% !important; + min-width: 0 !important; + padding-right: calc(var(--input-height) * 2 + 12px) !important; +} + +.workspace-leaf-content[data-type="search"] .search-input-container > .search-input-clear-button { + position: absolute !important; + top: 50% !important; + right: 6px !important; + margin: 0 !important; + transform: translateY(-50%); +} + +.workspace-leaf-content[data-type="search"] .search-input-container > :not(input):not(.search-input-clear-button) { + position: absolute !important; + top: 50% !important; + right: calc(var(--input-height) + 8px) !important; + z-index: 2; + margin: 0 !important; + transform: translateY(-50%); +} + .nav-files-container { padding: 8px 10px 24px; } diff --git a/theme.css b/theme.css index 42cb952..8d4fd6e 100644 --- a/theme.css +++ b/theme.css @@ -1,5 +1,5 @@ /* -Haze Note 0.1.19 +Haze Note 0.1.20 Personal macOS-first Obsidian theme by jn. No remote assets. No sound effects. */ @@ -969,6 +969,39 @@ body:not(.is-mobile) .workspace-leaf-content .view-header { margin: 0 !important; } +/* Obsidian 1.12 Chinese UI renders the Aa toggle as an unlabeled sibling of + the search field. Attribute selectors cannot reach it, so reserve space in + the input itself and anchor that sibling within the same input row. */ +.workspace-leaf-content[data-type="search"] .search-input-container { + position: relative !important; + display: block !important; + min-height: var(--input-height) !important; +} + +.workspace-leaf-content[data-type="search"] .search-input-container > input { + display: block !important; + width: 100% !important; + min-width: 0 !important; + padding-right: calc(var(--input-height) * 2 + 12px) !important; +} + +.workspace-leaf-content[data-type="search"] .search-input-container > .search-input-clear-button { + position: absolute !important; + top: 50% !important; + right: 6px !important; + margin: 0 !important; + transform: translateY(-50%); +} + +.workspace-leaf-content[data-type="search"] .search-input-container > :not(input):not(.search-input-clear-button) { + position: absolute !important; + top: 50% !important; + right: calc(var(--input-height) + 8px) !important; + z-index: 2; + margin: 0 !important; + transform: translateY(-50%); +} + .nav-files-container { padding: 8px 10px 24px; }