Skip to content

Bug: Line numbers 1px gap and flicker on collapse if highlighted for devices with high DPI screens #18

Description

@mayurankv

Describe the bug

Line numbers 1px gap and flicker on collapse if highlighted for devices with high DPI screens

Steps to reproduce

Highlight multiple lines in a codeblock in reading mode

```test hl:2-4
line 1
line 2
line 3
line 4
line 5
```

Expected behaviour

There should be no gaps in the highlights or flickering in highlights when collapsing.

Current behaviour

There can be both gaps and flickering.

Environment

  • Plugin Version: 1.0.0
  • Obsidian Version: 1.3.5
  • Platform: Desktop
  • OS: macOS

Screenshots

Additional context

Upstream issue.
Due to a bug with position sticky css implementation - see this issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreading modeRelevant to Obsidian reading modeupstreamUpstream issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions