diff --git a/css/swad16.147.css b/css/swad16.147.css index 95ffa608a..24a93868c 100644 --- a/css/swad16.147.css +++ b/css/swad16.147.css @@ -2022,15 +2022,15 @@ a:hover img.CENTRE_PHOTO_SHOW .REC_C2_TOP { box-sizing:border-box; - width:282px; + width:278px; height:68px; padding-top:8px !important; - } + } .REC_C3_TOP { box-sizing:border-box; width:190px; - } + } .REC_C1_MID { @@ -2040,8 +2040,8 @@ a:hover img.CENTRE_PHOTO_SHOW .REC_C2_MID { box-sizing:border-box; - width:282px; - } + width:278px; + } .REC_C3_MID { box-sizing:border-box; @@ -2052,7 +2052,7 @@ a:hover img.CENTRE_PHOTO_SHOW { box-sizing:border-box; width:170px; - } + } .REC_C2_BOT { box-sizing:border-box; @@ -2065,7 +2065,17 @@ a:hover img.CENTRE_PHOTO_SHOW } .REC_HEAD {font-family:Georgia,"DejaVu LGC Serif","Bitstream Vera Serif",serif; color:#808080; font-size:12pt;} -.REC_NAME {color:#808080; font-size:20pt; font-weight:bold;} +.REC_NAME + { + box-sizing:border-box; + max-width:274px; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; + color:#808080; + font-size:20pt; + font-weight:bold; + } .REC_NICK {color:#808080; font-size:15pt; font-weight:bold;} .REC_WEBS { diff --git a/swad_changelog.h b/swad_changelog.h index 28e8279aa..b28f11688 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -197,13 +197,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.147.4 (2017-03-04)" +#define Log_PLATFORM_VERSION "SWAD 16.147.5 (2017-03-04)" #define CSS_FILE "swad16.147.css" #define JS_FILE "swad16.144.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 /* + Version 16.147.5: Mar 05, 2017 Changes in layout of record card. (216346 lines) Version 16.147.4: Mar 05, 2017 Changes in layout of enrollment requesters. Code refactoring writing user's name. (216345 lines) Version 16.147.3: Mar 05, 2017 Changes in layout of followed users, users to follow and connected users. (216365 lines) diff --git a/swad_forum.c b/swad_forum.c index 3f3319463..5d34efe8c 100644 --- a/swad_forum.c +++ b/swad_forum.c @@ -685,7 +685,6 @@ static void For_GetThrSubject (long ThrCod,char Subject[Cns_MAX_BYTES_SUBJECT + row = mysql_fetch_row (mysql_res); Str_Copy (Subject,row[0], Cns_MAX_BYTES_SUBJECT); - Str_LimitLengthHTMLStr (Subject,20); /***** Free structure that stores the query result *****/ DB_FreeMySQLResult (&mysql_res); @@ -3495,7 +3494,6 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi PaginationPsts.NumItems = Thr.NumPosts; PaginationPsts.CurrentPage = 1; // First page Pag_CalculatePagination (&PaginationPsts); - Str_LimitLengthHTMLStr (Thr.Subject,80); Pag_WriteLinksToPages (Pag_POSTS_FORUM,Thr.ThrCod,&PaginationPsts, Thr.Enabled[For_FIRST_MSG], Thr.Subject, diff --git a/swad_record.c b/swad_record.c index 65be04a59..65ec7030b 100644 --- a/swad_record.c +++ b/swad_record.c @@ -2173,7 +2173,9 @@ void Rec_ShowSharedUsrRecord (Rec_SharedRecordViewType_t TypeOfView, fprintf (Gbl.F.Out,""); /***** User's nickname *****/ + fprintf (Gbl.F.Out,""); Rec_ShowNickname (UsrDat,PutFormLinks); + fprintf (Gbl.F.Out,""); /***** User's country, web and social networks *****/ fprintf (Gbl.F.Out,""); @@ -2597,29 +2599,20 @@ static void Rec_ShowPhoto (struct UsrData *UsrDat) static void Rec_ShowFullName (struct UsrData *UsrDat) { - char Name[Usr_MAX_BYTES_NAME + 1]; // To shorten length of FirstName, Surname1, Surname2 - - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,"" + "
"); /***** First name *****/ - Str_Copy (Name,UsrDat->FirstName, - Usr_MAX_BYTES_NAME); - Str_LimitLengthHTMLStr (Name,20); - fprintf (Gbl.F.Out,"%s
",Name); + fprintf (Gbl.F.Out,"%s
",UsrDat->FirstName); /***** Surname 1 *****/ - Str_Copy (Name,UsrDat->Surname1, - Usr_MAX_BYTES_NAME); - Str_LimitLengthHTMLStr (Name,20); - fprintf (Gbl.F.Out,"%s
",Name); + fprintf (Gbl.F.Out,"%s
",UsrDat->Surname1); /***** Surname 2 *****/ - Str_Copy (Name,UsrDat->Surname2, - Usr_MAX_BYTES_NAME); - Str_LimitLengthHTMLStr (Name,20); - fprintf (Gbl.F.Out,"%s",Name); + fprintf (Gbl.F.Out,"%s",UsrDat->Surname2); - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,"
" + ""); } /*****************************************************************************/ @@ -2632,8 +2625,7 @@ static void Rec_ShowNickname (struct UsrData *UsrDat,bool PutFormLinks) extern const char *Txt_Another_user_s_profile; bool ItsMe; - fprintf (Gbl.F.Out,"" - "" + fprintf (Gbl.F.Out,"" "
"); if (UsrDat->Nickname[0]) { @@ -2656,8 +2648,7 @@ static void Rec_ShowNickname (struct UsrData *UsrDat,bool PutFormLinks) } } fprintf (Gbl.F.Out,"
" - "" - ""); + ""); } /*****************************************************************************/