-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
CRM-21312 Fix display of 'Recent Items' when using a bootstrap theme #11138
CRM-21312 Fix display of 'Recent Items' when using a bootstrap theme #11138
Conversation
@mattwire I'm guessing this isn't relevant to shoreditch is it because it uses its own css or will this impact shoreditch as well? |
The code looks fine and simple and i don't think it would hurt anything just would like confirmation on impact on shoreditch first |
@guanhuan @jmcclelland - see Shoreditch q |
@mattwire Padding 0 is ok but, making overflow:hidden will hide view edit option from list item, can you write counter css which allows to make it visible someway properly? Hint: you can use icons to consume less space. |
@eileenmcnaughton I think you may have intended to ping jamie novak instead (not sure what his handle is)? |
d5ab334
to
e6110f2
Compare
@mukeshcompucorp Ok, take 2. I've wrapped the item name in a separate div so we can set overflow: hidden on that element and not affect the others. This also has the benefit that the hardcoded string length of 25 can be removed and it looks sensible on wider displays. |
test this please |
Please amend the overview to specify what is exactly fixed like "Fixed the layout for recent items, ... etc". Please also amend the screenshots so they show the whole page. If this page supports mobile layout the best thing to do might be providing a GIF where the resizing process is seen. "Tested on Bartik, Adaptivetheme, bootstrap. Works well on all of them." - this is not Technical Details. Technical details would be a CSS code snippet. What is provided is more something that goes under |
</div> | ||
</li> | ||
<li class="crm-recently-viewed"> | ||
<div class="crm-recentview-item"> |
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 wonder would it be nicer to wrap a DIV into A? In that case the area of click will cover the whole div, not just a caption (not a change request but a thought)
Hi guys - just trying to understand the degree of testedness / agreedness of this - I don't want to get blocked by the semantics of filing in the template - it seems agreed this is an improvement in some cases but I'm not sure if we have agreement this won't cause regressions in others. |
@mukeshcompucorp Can you confirm you are happy with this now? |
I second @mlutfy comments & am merging - the main concern was to get Compucorp input as to whether this had any negative effects on the Shoreditch theme. An impact was identified & resolved & other comments seem to be about stylistic nuances & administrative aspects. Based on @mlutfy testing I will merge - but I suggest @guanhuan that Compucorp make a point of testing the rc / master branch |
…s_fix CRM-21312 Fix display of 'Recent Items' when using a bootstrap theme
@lsmithgo I'm guessing that is an issue specific to whatever theme / theme customisation you are using. Works fine on the standard themes (just checked again). |
@mattwire I'm using the standard theme (to the best of my knowledge). Problem only shows when the item title is long, eg when showing a Participant registered to an Event. See the screenshot. |
@lsmithgo Looks like a Joomla specific issue then... I suggest you open an issue at https://lab.civicrm.org/dev/core/issues making it clear it only affects Joomla, and ideally try and work out what the best fix for this might be (that doesn't stop it working properly on other CMS). |
Overview
Before this patch, recent items is messed up on bootstrap themes. Afterwards, it is not messed up!
Before
After
Technical Details
Tested on Bartik, Adaptivetheme, bootstrap. Works well on all of them.