Skip to content

Commit

Permalink
Merge pull request #536 from compucorp/comcl-765-fix-styles
Browse files Browse the repository at this point in the history
COMCL-765: Fix Styling For Membership View Page
  • Loading branch information
shahrukh-compuco authored Aug 19, 2024
2 parents 4e67d3a + d9826de commit f091b7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/membershipView.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.crm-container .CRM_Member_Form_MembershipView .crm-contact-contribute-contributions>table.selector{
margin: 0 !important;
width: 100% !important;
}
8 changes: 8 additions & 0 deletions membershipextras.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,14 @@ function membershipextras_civicrm_pageRun($page) {
);
}

if (get_class($page) === 'CRM_Member_Page_Tab' && CRM_Utils_System::currentPath() === 'civicrm/contact/view/membership') {
CRM_Core_Resources::singleton()->addStyleFile(
CRM_MembershipExtras_ExtensionUtil::LONG_NAME,
'css/membershipView.css',
1
);
}

if ($page instanceof CRM_Contribute_Page_ContributionRecur) {
$recurViewPage = new CRM_MembershipExtras_Hook_PageRun_ContributionRecurViewPage();
$recurViewPage->handle($page);
Expand Down

0 comments on commit f091b7d

Please sign in to comment.