logseq-copy-code-plugin icon indicating copy to clipboard operation
logseq-copy-code-plugin copied to clipboard

Inline copy code icon has weird display behavior

Open Cordelya opened this issue 2 years ago • 8 comments

Summary: copy-code icon has before and after line breaks in inline codeblocks, and doesn't show at all in fenced codeblocks.

Environment:

  • Logseq 0.6.6
  • Copy Code plugin 1.1.2
  • OS: Windows 10
  • Other plugins: logseq-calendars-plugin, logseq-quicktodo-plugin, logseq-recurrence-plugin, logseq-smartblocks (all up to date)
  • All plugins were installed via the Marketplace (ie not manually)
  • Logseq is generally not otherwise modified.

Consider the following block:

Automatically remount the share at boot. Add the following to `/etc/fstab`
```ini
//remote/share /local/mountpoint cifs credentials=/home/username/.smbcredentials,uid=username 0 0
```

As a screenshot: block in markdown

When rendered, it displays like this: rendered block

It looks as though the "copy code" button is being inserted into inline codeblocks with line breaks before and after. The button does not appear at all when I hover my mouse cursor over any fenced codeblock.

I have not altered the button's positioning from the default.

Let me know if you'd like me to try anything or if you need more information.

Cordelya avatar Jul 10 '22 11:07 Cordelya