Conversation
- added text for wikitranslate - added english translation
src/components/QueryBuilder.vue
Outdated
@@ -222,4 +227,9 @@ a { | |||
.querybuilder__run { | |||
margin-block-start: $dimension-layout-medium; | |||
} | |||
|
|||
.querybuilder__add-condition { | |||
float: inline-end; |
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.
do we want to use flex
here instead? in that case we need a flex wrapper only for this element
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.
seems like it has terrible browser support.
https://caniuse.com/?search=inline-end
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 think our postcss is supposed to take care of that, but somehow this is not working. I.e. it is broken in chrome.
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.
On inspecting it further, that part of postcss seems to correctly replace it with float: right
and float: left
, but we are not picking it up because there is still some confusion about the dir
attribute. I'll look.
c5cd2f2
to
757df7f
Compare
added test to check for emitter
757df7f
to
84bc3fe
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.
it looks good to me
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 works as intended. Postcss produces the following styles:
[dir=ltr] .querybuilder__add-condition[data-v-4ec7d228]{float:right}
[dir=rtl] .querybuilder__add-condition[data-v-4ec7d228]{float:left}
.querybuilder__add-condition[data-v-4ec7d228]{float:inline-end}
That is what we want. The problem is that we are currently always using [dir=auto]
and so those styles don't match. However, that problem is independent of this PR and so I'm approving this.
first commit:
second commit:
third commit: