-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
long title button overlap resolved #11158
long title button overlap resolved #11158
Conversation
Build Artifacts
|
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.
Hi @GarvitSinghal47, thank you so much for working on this. It looks good, I just had a few comments to add in. Also, in the above References section, if you add in the line Fixes #11086
, once this pull request is merged, it will automatically close that issue!
@@ -419,9 +434,9 @@ | |||
}, | |||
numBarActions() { | |||
let maxSize = 1; | |||
if (this.windowBreakpoint === 1) { | |||
if (this.windowBreakpoint === 1 || this.windowBreakpoint === 2) { |
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 if statement could instead check if this.windowBreakpoint
is less than or equal to 2 as a small refactor.
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.
Ah that will not work as when the size of breakpoint will go less than 1 we want to show only one icon the refactor you are saying will make two icon to show in that case but originally intended was 1 .
we can change it to get value greater than equal to 1 or less than equal to 2 but i think that will not be of any use.
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.
Okay, I understand it now, I overlooked that detail before :)
/> | ||
<TextTruncatorCss | ||
v-else | ||
:text="resourceTitle | truncateText(70)" |
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.
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 just added by manually applying it by decreasing the size of window to various breakpoints for large screen when it is greater than 2 breakpoint means till 3 to 6 i have make 70.
it will show good in case of 6 breakpoint but when we take it to 3 or 4 any size of text above or about 75 can create problem of button overlap again.
we can also change it for breakpoint 5 and 6 as well seperately like about 80 to 85 (a it will be safe) but the inital thinking of mine is to cover approx 50-60 % of the header by title in case of breakpoint 5 and 6 .
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.
Thank you for the explanation, that makes sense to me! Now that all the tests pass, this should be good to merge in!
I'd like to add that tests from |
Thanks for catching that @MisRob. Looks like a problem with
More info about Kolibri tests can be found here. |
Fixes #11086
Summary
changes the default old breakpoint for the numBarActions to more suitable one.
also added a filter of text truncation on long title for different breakpoint to prevent button issue as the size of the text content increases.
After :
Transcripts.-.MIT.Blossoms.webm
…
References
…
Reviewer guidance
…
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)