-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggester not working in read mode #63
Comments
that is strange. Can you check for any errors in the console? |
To open the console, press |
This seems to be an issue caused by the columns plugin, not using obsidians API correctly and thus causing Markdown-Render-Children of other plugins to unload immediately. One bug report already showcases the issue on the columns plugin repo. tnichols217/obsidian-columns#46 As a way around this, I recommend using CSS to create column/grid layouts. |
Here is some CSS that you can use as a snippet, which uses special callouts to create a customizable grid layout. (This is taken from my theme, which you can find here https://github.com/mProjectsCode/obsidian-lemons-theme) .callout[data-callout=row] {
background: transparent;
}
.callout[data-callout=row] > .callout-title {
display: none;
}
.callout[data-callout=row] > .callout-content {
padding: 0;
background: transparent;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
gap: var(--size-4-4);
}
.callout[data-callout=row] > .callout-content > * {
flex: 1;
margin: 0;
}
.callout[data-callout=grid] {
--lt-callout-grid-columns: 2;
background: transparent;
}
.callout[data-callout=grid][data-callout-metadata="1"] {
--lt-callout-grid-columns: 1;
}
.callout[data-callout=grid][data-callout-metadata="2"] {
--lt-callout-grid-columns: 2;
}
.callout[data-callout=grid][data-callout-metadata="3"] {
--lt-callout-grid-columns: 3;
}
.callout[data-callout=grid][data-callout-metadata="4"] {
--lt-callout-grid-columns: 4;
}
.callout[data-callout=grid][data-callout-metadata="5"] {
--lt-callout-grid-columns: 5;
}
.callout[data-callout=grid] > .callout-title {
display: none;
}
.callout[data-callout=grid] > .callout-content {
padding: 0;
background: transparent;
display: grid;
grid-template-columns: repeat(var(--lt-callout-grid-columns), 1fr);
gap: var(--size-4-4);
}
.callout[data-callout=grid] > .callout-content > * {
margin: 0;
} Row
> [!row]
> > [!info]
> > hello
>
> > [!warning]
> > world, hello world, hello world
>
> > [!danger]
> > !
Grid
> [!grid|2]
> > [!info]
> > hello
>
> > [!warning]
> > world, hello world, hello world
>
> > [!danger]
> > !
Non callout Grid
> [!grid|2]
> ![[lemons-theme-test-image.PNG|Lemon theme test image]]
>
> Test
>
> > Quote
>
> _This is a non callout grid_ |
Thanks for the quick and detailed answer ! |
Describe the bug
When in read mode, the suggester fields are not shown, they work properly when in edit mode, but then it is impossible to use selector fields since clicking on those will open the raw code to edit.
To Reproduce
Expected behavior
I should be able to manipulate all 6 fields, wether in read or edit mode. Currently, I can only change fields 1-3 when in read mode, and fields 4-5 in edit mode. field 6 is always usable.
Screenshots
Here in edit mode with preview on, fields 4 and 5 usable but Fields 1-3 cannot be used since it shows code when clicking on an option.
Here in read mode, fields 4 and 5 are unusable
Occurs on
Plugin version
0.4.0
Thanks !
The text was updated successfully, but these errors were encountered: