Adjust font size of code with title on live preview mode

We strongly recommend you to search the forum with possible keywords before submitting a new bug report. Please also try your repro steps with third-party plugins and custom CSS disabled and see if it’s still reproducible. If it’s an issue with third-party plugins or themes, try contacting the author for help. Once you’ve done the above, delete this line.

Steps to reproduce

Use dataview admonition or other plugins which be able to preview on editor. If content include title, those title’s font will be very large. but if switch to preview mode, the font size will back to mormal.

Expected result

Please help to fix this issue. keep font size same on preview and live-preview mode.

Actual result

Environment

  • Operating system:
  • Debug info:

Additional information

That probably depends on your css, plugins, and how you have structured your syntax. Is this what you mean (source on left and reading mode on right):

> [!abstract] Abstract  
> 
> ```dataviewjs
const setTime = new Date("2022/4/19 08:00:00");
const nowTime = new Date();
const restSec = nowTime.getTime() - setTime.getTime();
const day = parseInt(restSec/(60*60*24*1000))+1;
const str = "# Today is Pineview Mass Production Day " + day
dv.paragraph(str);
>```

Or:

> [!abstract] ```dataviewjs
const setTime = new Date("2022/4/19 08:00:00");
const nowTime = new Date();
const restSec = nowTime.getTime() - setTime.getTime();
const day = parseInt(restSec/(60*60*24*1000))+1;
const str = "# Today is Pineview Mass Production Day " + day
dv.paragraph(str);
>```

Angel

Hey Angel,

Thank you so much for your answer! yes I just realized this title size on code block is same size as Obsidian default theme. I currently use Minimal theme, on this theme title have a smaller size. But this smaller size title only be able to display normally on Read mode but not on live-preview mode.
Universe - Obsidian v0.14.6 2022-04-23 08-49-23_
I don’t know which on I should feedback to fix it, Obsidian or Minimal theme :rofl:

1 Like

Hi, Ashton

Good to hear you have identified the issue. Guess the Minimal developer is the right person to talk to.

Enjoy the weekend

Angel

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.