Date&time Property is getting cut off

Hi. Suddenly, some of the value of date&time value property looks cut off.
I tried turning off all the CSS files I applied and resetting the theme, but the issue is not resolved.

I tend to get that in vaults where I use a custom font :blush:

This is what I get in a vault for which I didn’t set up any custom font

This is what I get in another vault for which I set up a custom font

I wouldn’t know how to solve this though :sweat_smile: … But I guess a CSS snippet would be a way :blush:

1 Like

Oh. I’m using custom font in my vault too.
I need to find some css code that helps me. Thanks a lot.:kissing_heart:

My pleasure :blush: !

For the CSS, I took a quick look into the dev’ tool earlier (and forgot to edit my post :see_no_evil:) and either one of these seems to work from my side, using Obsidian’s default theme :blush: (I’m no CSS magician though :sweat_smile: ) :

.metadata-property input[type='datetime-local'] {
    width: 300px;    /* Update the value as desired */
}

or

.metadata-input-text.mod-datetime {
    width: 300px;    /* Update the value as desired */  
}
1 Like

Oh God, it works perfectly (in my vault with the minimal theme)!
I should put more effort into learning CSS. :sweat:
Anyway, I really appreciate it again! God bless you.:smiling_face_with_three_hearts:

1 Like