-
Notifications
You must be signed in to change notification settings - Fork 323
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
Wip/mk/whitespace chars monospace font table viz #10563
Wip/mk/whitespace chars monospace font table viz #10563
Conversation
What are the 3 modes? I think I was expecting 2 modes with a single on/off toggle button. |
I thought there was going to be on/off and then the 'special' partial one, maybe I misunderstood and we want just on and the 'partial' setting? |
Looks really good and close to the target. We did talk about the 3 modes. |
dfcb990
to
2806102
Compare
The Full mode screenshot is not loading for me. |
I'm so sorry for the accidental close - I clicked something accidentally 🤦 - reopened |
@@ -285,7 +285,7 @@ const contentStyle = computed(() => { | |||
max-width: calc(100% - var(--permanent-toolbar-width)); | |||
/* FIXME [sb]: This will cut off floating panels - consider investigating whether there's a better | |||
* way to clip only the toolbar div itself. */ | |||
overflow-x: hidden; | |||
overflow: visible; |
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.
After this change, does the toolbar still behave correctly when the visualization is very narrow? If so, I guess the comment above can be deleted.
function getRowHeight(params: RowHeightParams) { | ||
if (textFormatterSelected.value === TextFormatOptions.Off) return DEFAULT_ROW_HEIGHT | ||
const rowData = Object.values(params.data) | ||
const textValues = rowData.filter((r) => typeof r === 'string') as string[] |
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.
const textValues = rowData.filter((r) => typeof r === 'string') as string[] | |
const textValues = rowData.filter<string>((r) => typeof r === 'string') |
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.
This was marked as resolved but not addressed.
Looking at the Partial screenshot - I feel like it is not that easy to distinguish the whitespace marks from regular characters. What if I had a text containing the |
4e91cf6
to
d79b08f
Compare
|
Co-authored-by: Kaz Wesley <[email protected]>
Co-authored-by: Kaz Wesley <[email protected]>
Co-authored-by: Kaz Wesley <[email protected]>
Co-authored-by: Kaz Wesley <[email protected]>
5ac8373
to
54a16b6
Compare
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.
Please avoid force-pushing any non-draft branch; GitHub isn't able to show the changes since a previous review when there has been a force-push, so we use merge
rather than rebase
to keep branches up to date.
:title="`Text displayed in monospace font, only multiple spaces displayed with ·`" | ||
@click.stop="() => emit('changeFormat', TextFormatOptions.Partial)" | ||
/> | ||
<button |
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.
All of our buttons have tooltips and some consistent styling. I see this one matches the styles by copy-and-paste, but that won't stay up to date if we change the rest of the buttons. This button too could be rendered with one of our button abstractions:
- It could be a
SvgButton
. The icon can be styled using a deep-style selector:.OffButton :deep(.SvgIcon) { /* strikethrough styles */ }
- Or it could be done with our most general button,
MenuButton
, which can be applied to anything to provide the button styling and tooltip.
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.
I have used Menu Button, but for all entries as this seemed to make it easier to have consistent formatting
/* FIXME [sb]: This will cut off floating panels - consider investigating whether there's a better | ||
* way to clip only the toolbar div itself. */ |
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.
It's always nice to see a FIXME fixed 😄
function getRowHeight(params: RowHeightParams) { | ||
if (textFormatterSelected.value === TextFormatOptions.Off) return DEFAULT_ROW_HEIGHT | ||
const rowData = Object.values(params.data) | ||
const textValues = rowData.filter((r) => typeof r === 'string') as string[] |
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.
This was marked as resolved but not addressed.
Pull Request Description
Partial (default) setting:
Full:
Off:
Dropdown:
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.