marcusolsson / obsidian-projects

Plain text project planning in Obsidian
Apache License 2.0
1.42k stars 56 forks source link

Widen "create new note" note title name input box #864

Open GitMurf opened 5 months ago

GitMurf commented 5 months ago

What would you like to be added?

I tried to do a PR but I just am too inexperienced with Svelte that this seemingly simple change was going to take too much time for me to figure out. Thanks in advance!

image

Why is this needed?

I like to use descriptive note names and it is very hard with the tiny input text field. Would be great if it could be extended to the widest that fits the modal.

Acylation commented 5 months ago

I'll have limited availability in the coming weeks so it will take some time to see this implemented.

But if you want to find it out yourself, here's a potential reference. In activated text typed table cells, you can see the wrapped <TextInput /> component from obsidian-svelte package fitting itself to the column width. Maybe this is a suitable point to start. Thank you so much for reporting this use-case and the possible contributions!

https://github.com/marcusolsson/obsidian-projects/blob/8e4d79b0953b949f0567d61e36815e8833ec8cad/src/ui/views/Table/components/DataGrid/GridCell/GridTextCell/GridTextCell.svelte#L71-L89