-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
[dash builder fix] combine markdown and slice name, slice picker height #5165
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,13 +88,13 @@ function getChartHolder(item) { | |
Math.round(size_y / GRID_RATIO * 100 / ROW_HEIGHT), | ||
); | ||
if (code !== undefined) { | ||
let markdownContent = ''; | ||
if (slice_name) { | ||
markdownContent = `##### **${slice_name}**\n`; | ||
} | ||
let markdownContent = ' '; // white-space markdown | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't quite follow this comment, what do you mean by it? it could be more clear if you say the approach we're using: use code if it exists, else use title if it exists. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ohhh I see. thanks for the explanation, good catch. |
||
if (code) { | ||
markdownContent += code; | ||
markdownContent = code; | ||
} else if (slice_name.trim()) { | ||
markdownContent = `##### ${slice_name}`; | ||
} | ||
|
||
return { | ||
type: MARKDOWN_TYPE, | ||
id: `DASHBOARD_MARKDOWN_TYPE-${generateId()}`, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is to wrap title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@graceguo-supercat this is regardless of whether the slice has been added, right? I think we only want an early wrap if it has been added/the
ADDED
label is there?