SNIPPET
kgway

obsidian-android-date-fix

A CSS snippet for native date and datetime fields in Obsidian on Android.

Android date fields for Obsidian

A CSS snippet that separates the calendar icon from the text in native date and datetime inputs on Android.

The icon stays beside the text in normal layout, with Obsidian's standard gap (normally 8px). It scales with the input's font size. There is no absolute icon positioning or extra padding reserved for a hidden icon.

Install

  1. Download android-date-fix.css. Save the file itself, not the GitHub HTML page.
  2. In Obsidian on desktop, open Settings → Appearance → CSS snippets → Open snippets folder and place the CSS file there.
  3. Reload the snippets list and enable android-date-fix.
  4. Sync or copy the file to the Android vault's configuration folder under snippets, and enable it on that device too.

If you previously installed android-date-properties.css, disable or remove that older snippet first. Keep one active copy of this workaround.

See the official snippet installation instructions for desktop and mobile steps. No community plugin is required.

What it changes

  • Editable native HTML date and datetime-local inputs on Android, including note properties and plugin date filters.
  • The icon's layout and the input's leading padding. The native picker, date values and input width are preserved.
  • Desktop, iOS, plain text dates, custom calendars, disabled fields and read-only fields are outside its scope.

This file contains only CSS. It does not read notes, modify their contents or make network requests. The snippet is independent of any plugin.

After Obsidian updates

The icon takes up space through normal layout rather than a fixed empty slot. If a host update hides the indicator with display: none, the icon and its gap disappear together. Applying the same layout correction twice does not add another gap.

Browser tests cover overlapping icons, corrected host padding, icons moved to the right, icons already in normal flow, hidden icons and larger fonts. They do not prove compatibility with every Android device, custom theme or future WebView implementation. If the host changes the structure of its date controls, further adjustment may be needed.

After updating Obsidian or Android WebView, you can disable the snippet to check whether it is still useful. Leaving it enabled keeps this layout for the tested host changes; it cannot automatically identify every future fix.

Background

See the Obsidian bug report, reported with Obsidian 1.14.4 and Android WebView 154. The first affected host version is not established.

Development

Requires Node.js 24 and pnpm 11.19.0.

pnpm install --frozen-lockfile --ignore-scripts
pnpm exec playwright install chromium
pnpm test

The tests use synthetic inputs in an isolated browser and do not open Obsidian or a real vault.

License

MIT. Copyright (c) 2026 kgway. Unofficial; not affiliated with Obsidian.

Related

How to Install

  1. Download the repository ZIP below
  2. Unzip it and find the CSS snippet file
  3. Move the CSS file into your vault's .obsidian/snippets/ folder
  4. Open Obsidian → Settings → Appearance → CSS Snippets → Enable it

Stats

Stars

1

Forks

0

License

MIT

Last updated 1mo ago

Categories