File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
_files/js/inforge/gridshow Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,14 @@ function if_gs_fit_text()
22{
33 var titles = $ ( ".if-gs-widget" ) . find ( ".if-gs-tile-title" ) ;
44 titles . each ( function ( ) {
5- var mul = 0.05 + 0.02 * $ ( this ) . text ( ) . length ;
6- var size = Math . max ( Math . min ( $ ( this ) . width ( ) / ( mul * 10 ) ) ) ;
7- var min_size = 5 + 0.05 * $ ( this ) . width ( ) ;
5+ var size = Math . max ( Math . min ( $ ( this ) . width ( ) / ( 0.5 + 0.2 * $ ( this ) . text ( ) . length ) ) ) ;
6+ var min_size = 6 + 0.04 * $ ( this ) . width ( ) ;
87 if ( min_size < 9 )
98 min_size = 9 ;
109 if ( size < min_size )
1110 size = min_size ;
12- if ( size > 25 )
13- size = 25 ;
11+ if ( size > 20 )
12+ size = 20 ;
1413 $ ( this ) . css ( "font-size" , size ) ;
1514 } ) ;
1615}
Original file line number Diff line number Diff line change 99 "faq_url" : " https://github.com/InforgeNet/GridShow/wiki/Frequently-Asked-Questions" ,
1010 "support_url" : " https://github.com/InforgeNet/GridShow/issues" ,
1111 "extra_urls" : {
12- "GitHub " : " https://github.com/InforgeNet/GridShow " ,
13- "Forum " : " https://www.inforge.net/forum "
12+ "Forum " : " https://www.inforge.net/forum " ,
13+ "GitHub " : " https://github.com/InforgeNet/GridShow "
1414 },
1515 "require" : {
1616 "XF" : [ 2010010 , " XenForo 2.1.0+" ],
You can’t perform that action at this time.
0 commit comments