Sandor! 0 Report post Posted December 21, 2020 Hi all, While sometimes using date modifiers like bef, abt, between dates etc. i recognized that while using that kind of dates together with a place name, the date does not fit in the field, as a result it creates another line in that date field/column...see the attached picture. I would like to have it like Bef 01 Jan 1821, in 1 row. How to achieve this? I think it should be a simple code change to extend that field size, but i can not find that specific code where to change that? Someone? Any help or suggestion would be appreciated. Regards, Sandor Share this post Link to post Share on other sites
theKiwi 0 Report post Posted December 21, 2020 The property you're looking to change is eventdatecol It is in genstyle.css. If you're comfortable with using a Mod to fix this, then here's the text of a small unpublished Mod I use to achieve this on my site This is a TNG mod directive file %name:Date Column Width Adjustment% %version:V11.0.0.0.0% %description:Changes the default width of the date column on getperson.php from thumbwidth+20 to thumbwidth+40px.<br /><br />Must be installed after Add DNA Test Results Mod% %target:css/genstyle.css% %location:% /* Adjust Event Date column on Individual Person page based on thumbnail width */ .eventdatecol { width:100px; %end:% %trimreplace:% /* Adjust Event Date column on Individual Person page based on thumbnail width */ .eventdatecol { width:120px; %end:% Copy all that, paste it into a text file, and save that file as date_width_mod_v11.0.0.0.cfg and then upload it to the "mods" folder on your TNG site, and then use Mod Manager to install it. Roger Share this post Link to post Share on other sites
Rob Roy 0 Report post Posted December 21, 2020 There is a mod which allows you to set the size of the date field. I use it and it works nicely: https://tng.lythgoes.net/wiki/index.php?title=Adjust_Date_Field_Width Share this post Link to post Share on other sites
Ken Roy 0 Report post Posted December 21, 2020 Note that the eventdatecol in genstyle.css is added there by the Mobile Site Enhancements mod, since TNG calculates that column width based on the thumbnail size. I have tried for years to get Darrin to change that to a css class instead of a PHP calculation. Maybe some of you can convince Darrin to convert that column width to be controlled by a CSS definition Share this post Link to post Share on other sites
Sandor! 0 Report post Posted December 21, 2020 Thanks all for your answers, very helpfull !!! Regards, Sandor Share this post Link to post Share on other sites