feat: hide quick add magic help behind a tooltip #3353

Merged
konrad merged 13 commits from feature/hide-quick-add-magic-help into main 2023-06-05 15:02:43 +00:00
Showing only changes of commit a4c8fccb11 - Show all commits

View File

@ -116,9 +116,10 @@ const prefixes = computed(() => PREFIXES[mode.value])
.show-helper-text {
right: 0;
konrad marked this conversation as resolved Outdated

Positioning should happen from outside. Remove right: 0 from here

Positioning should happen from outside. Remove `right: 0` from here

Done

Done

I had to use an unscoped style for this because I could not add a new class to the quick-add-magic component due to it being multi-node. Not sure if that's the best solution.

I had to use an unscoped style for this because I could not add a new class to the `quick-add-magic` component due to it being multi-node. Not sure if that's the best solution.
pointer-events: auto !important;
konrad marked this conversation as resolved Outdated

Why pointer-events: auto?

Why `pointer-events: auto`?

Because in BaseButton we set that to none which makes the button unclickable (and unhoverable).

Because in `BaseButton` we set that to `none` which makes the button unclickable (and unhoverable).
That can't be it, because there it's set to `auto` as well: https://kolaente.dev/vikunja/frontend/src/branch/main/src/components/base/BaseButton.vue#L115

Seems to be the .control.has-icons-left .icon class of bulma. Can you add a comment?

It also seems that the textarea could profit from has-icon-right so that there is enough padding for the button.

Seems to be the `.control.has-icons-left .icon` class of bulma. Can you add a comment? It also seems that the textarea could profit from `has-icon-right` so that there is enough padding for the button.

Added a comment and more padding.

Added a comment and more padding.
&.is-highlighted {
color: inherit !important;
}
}
dpschen marked this conversation as resolved Outdated

Is nesting even necessary if we already need to use !important for inheriting the color?

Is nesting even necessary if we already need to use `!important` for inheriting the color?

It isn't, I added the nesting out of habit. Removed it now.

It isn't, I added the nesting out of habit. Removed it now.
.is-highlighted {
color: inherit !important;
}
</style>