Skip to content
Snippets Groups Projects

Fix icon alignment on drop-downs and on contact type icons

Merged cividesk requested to merge cividesk/finsburypark:master into master
3 unresolved threads

Previous fix + another fix. Tested on D7/D9 with Seven admin theme. Before: image

After: image

Notice top-left and bottom-right icon alignment.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
4723 4723 line-height: 13px;
4724 4724 border-radius: 3px;
4725 4725 }
4726 .crm-container .select2-container-multi .select2-choices .select2-search-choice-close {
4727 padding: 0;
  • nicol
    nicol @nicol started a thread on commit c3cbf6f7
  • 4686 4686 }
    4687 4687 .crm-container select {
    4688 4688 line-height: 18px;
    4689 min-height: 32px;
    • Maintainer

      It would be good (ie fewer lines and easier to update all styles at once) to bundle this style info with the line - https://lab.civicrm.org/extensions/finsburypark/-/blob/master/css/civicrm.css#L1468 - that describes all input styles (border colour, radius, etc) - by adding .crm-container select to that list.

      But the minimum height is still needed to be overwritten so we could keep .crm-container select {min-height: 32px;} here and nothing else.

      Sorry to be so particular - hope this makes sense?

    • Maintainer

      ie like this:

      image

      NB - second screengrab in a row that shows right icon clipping in the input box with a select-list, will open an issue for that to remind me to fix.

    • Please register or sign in to reply
  • Maintainer

    Thanks @cividesk for these suggestions - I've had a v quick check across D7, D9, WordPress and Joomla - and all look fine. If you can make the two adjustments above am good to merge.

  • nicol mentioned in commit 085ba080

    mentioned in commit 085ba080

  • merged

  • Maintainer

    Have merged to avoid this becoming stale, and resolved those two issues in this commit. Thanks for the contribution.

  • Author Contributor

    @nicol Sorry I got carried away on other tasks and thanks for merging. Did run visual checks on master and all good now.

  • Please register or sign in to reply
    Loading