-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Mobile] Make Style Changes to Recent Objects #7487
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7487 +/- ##
==========================================
- Coverage 55.66% 55.36% -0.30%
==========================================
Files 672 672
Lines 27003 27003
Branches 2624 2624
==========================================
- Hits 15030 14950 -80
- Misses 11254 11334 +80
Partials 719 719
... and 15 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
gotta rebase this PR onto master |
f784fd6
to
5471820
Compare
src/ui/layout/search/search.scss
Outdated
} | ||
|
||
&__result-pane-msg { | ||
> * + * { | ||
margin-top: $interiorMargin; | ||
} | ||
} | ||
|
||
&__results-close { // Close button that appears for mobile only |
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.
can this be explicitly defined as mobile in that case?
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.
Is there value in making this explicit in that way? If not, my pref is to leave more open as is.
5471820
to
ae65171
Compare
ae65171
to
77f5971
Compare
77f5971
to
de46b26
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7487 +/- ##
==========================================
- Coverage 56.60% 53.94% -2.66%
==========================================
Files 672 672
Lines 27120 27120
Branches 2632 2632
==========================================
- Hits 15351 14631 -720
- Misses 11441 12161 +720
Partials 328 328
... and 88 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Needs visual and e2e tests. @johnhill2 Let's sync soon to see what the best approach for this is. |
9d9123f
to
c8fbdaf
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.
Styling in objects in Recently Viewed looks great. But, the way that holder is treated needs some changes. I've made those changes and pushed up the result, but wanted to note what was done and why.
- Currently, you're setting the max-height to 50vh.
vh
is not the best way to go visually in this case; I think we're better off in landscape on small devices with 50% of the vertical area available to the pane instead of 50% of the view portal height. Usingheight: 50% !important
on the Recents pane visually splits the space beneath the status bar for a more balanced result. - Also,
max-height
isn't the right property in this case. max-height should be used as a limiter, like "don't let this thing get any larger than this". In this case, you want to set theheight
. And, because JS is setting height on the element via code, you have to use!important
. - On larger mobile displays, 50/50 is too much. I think the tree should take precedence, and setting a discrete max-height is the way to go. I played a bit and thought that
max-height: 200px
looked good. - Finally, we need to qualify the selector. Currently, the CSS as written is going to control all
.l-pane
elements with "--vertical" in their name. In this case, we only want to affect the Recents pane section, and yes, doing things this way works - for now. I added CSS classing to AppLayout.vue and moved style defs accordingly in pane.scss to enable this.
- Better strategy for height. - More specific selector via explicit class `l-pane__recently-viewed`.
- Change padding at bottom of the tree to gap in multipane.
# Conflicts: # src/ui/layout/pane.scss
Closes
#7318
Describe your changes:
All Submissions:
Author Checklist
type:
label? Note: this is not necessarily the same as the original issue.Reviewer Checklist