Jump to content
TNG Community

Change height of compact chart cells


Hoplop

Recommended Posts

Hi

I've been all over the genstyle.css and can't find a way to affect the height of the cells in the compact descendancy chart.

I've tried using the code below to no effect.  I can change the height of a single cell but can't seem to get the right way to make all compact chart cells taller.

I'm working in Divi theme without customizations at this stage, and have set up using Kloosterman method. Site is not live yet.

Your help is much appreciated.

 

.rounded4, div.pad5 img  {
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    min-height:35px !important;
    }

 

Screen Shot 2021-01-30 at 12.31.08 PM.png

Link to comment
Share on other sites

Solved:

after trying all kinds of css. I went to the desced.php file (preserving a copy of the original) and changed the boxheight to "23"and boxvsep to "7".

Final code

 

if( $display == "compact" ) {
    $pedigree['inclphotos'] = 0;
    $pedigree['usepopups'] = 0;
    $pedigree['boxHsep'] = 15;
    $pedigree['boxheight'] = 23;
    $pedigree['boxnamesize'] = 8;
    $pedigree['cellpad'] = 0;
    $pedigree['boxwidth'] -= 50;
    $pedigree['boxVsep'] = 7;
    $pedigree['shadowoffset'] = 1;
    $pedigree['spacer'] = " ";
    $pedigree['gendalign'] = -2;
    $spouseoffset = 20;
    $pedigree['diff'] = $pedigree['boxheight'] + $pedigree['boxVsep'] + $pedigree['linewidth'];
    $clinkstyle = "3";
    $slinkstyle = "";
}

 

 

The same change must also be made in the same area of the pedigree.php in order to affect the ancestors compact chart.

 

if( $display == "compact" ) {
    $pedigree['usepopups_real'] = 0;
    $pedigree['boxHsep'] = 7;
    $pedigree['boxheight'] = 23;
    $pedigree['boxheightshift'] = 0;
    $pedigree['boxnamesize'] = 8;
    $pedigree['namesizeshift'] = 0;
    $pedigree['cellpad'] = 0;
    $pedigree['boxwidth'] -= 50;
    $pedigree['boxVsep'] = 7;
    $pedigree['shadowoffset'] = 1;
    $namepad = " ";
}

Screen Shot 2021-01-30 at 2.23.06 PM.png

Link to comment
Share on other sites

Sorry I'm late to the party here..
Could those changes have been made in the Admin Setup >> Configuration >> Chart Settings??

 

Link to comment
Share on other sites

Rick, I believe some of those values for pedigree and descendant charts are either overridden and/or hard coded, in some cases to ensure reasonable values, I think. At least back in TNG12.3 it was.  I can't remember within TNG13.   I was going to respond to Hoplop, but didn't take the time to look because I saw WP was in the mix.  

Link to comment
Share on other sites

You can also do it with css, then  you don't have to change descend.php every time when you upgrade TNG
My settings are :

/* START TNG BOX COMPACT */

.pedbox.rounded4 {
min-height:20px !important;
margin-top: 0px !important;
margin-bottom: 0px !important;
}
.rounded4 .pboxname {
font-weight: bold !important;
font-size: 9px !important;
}
/* END TNG BOX COMPACT */

Link to comment
Share on other sites

Thank you Mr. Kloosterman--I did try that approach as I saw your earlier post but it refused to work.

I'm sure there is a conflict somewhere in my theme Divi but just could not locate it, so the php change was a simpler one.

Your overall method is great and the genealogy part of my site is starting to look as I want it to. I had no problems at all implementing your method.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...