I am trying to right align fields in studio, by using a field âfillerâ in the first column. This seems to be ignored though and the field i want to align is moved to a new line and placed in the first column.
I can see that the âfillerâ field has a div tag with âclass= col-xs-12 col-sm-6 detail-view-row-itemâ - however immediately after that there is a div with a âclearâ class.
This second âclearingâ div is causing the issue - by deleting it in chrome dev tools the field correctly moves to the right.
Where can i find the code to prevent this clearing div from being added to the layouts?
This should really just work, maybe youâre better off trying to find the bug than tweaking code.
What version of SuiteCRM is this? And have you tried it on other browsers, or just one?
I have an installation of 7.8.x where I have a Contactâs photo on the left, and because it takes up 4 rows, I keep three rows with nothing on the left, it looks like this in Studio:
I only tweaked the photoâs âposition:absoluteâ CSS property.
Anyway, it should work for you too. Can you post screenshots (or schemes like mine) to show what you get in Studio, and what you get on the displayed screens?
@pgr, I am also having this issue as of SuiteCRM 7.10.1
All you have to do to duplicate the issue is go into studio and add a filler on the left, field on the right in a single row and then publish that. The field wonât be on the right, instead it will be on the left with weird spacing because of a div with the âclearâ class.
You can fix this issue by going to themes/SuiteP/include/DetailView/tab_panel_content.tpl
Look for this (around lines 204-206 as of 7.10.1):
Commenting out this code seems to fix the issue. I tried to put this in the custom directory, but it didnât work for me, not sure if developer mode is properly clearing the cache or if this file isnât customizable.
Be wary though, because I think the intention was to make it so that if there is fillers on both the left and right side that it would add a clear class to both sides (my guess at least).