From db1e8bbb5204389c9a916fc450733912ac41bdb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sun, 5 Mar 2017 18:17:24 +0100 Subject: [PATCH] Version 16.147.7 --- css/swad16.147.css | 15 ++++++++++++--- swad_changelog.h | 3 ++- swad_social.c | 14 +++----------- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/css/swad16.147.css b/css/swad16.147.css index fa23372f2..484a30668 100644 --- a/css/swad16.147.css +++ b/css/swad16.147.css @@ -2509,6 +2509,9 @@ a:hover img.CENTRE_PHOTO_SHOW width:536px; padding-top:10px; text-align:left; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; } .SOCIAL_TOP_PUBLISHER { @@ -2540,6 +2543,9 @@ a:hover img.CENTRE_PHOTO_SHOW width:320px; text-align:left; vertical-align:top; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; } .SOCIAL_RIGHT_TIME { @@ -2678,6 +2684,9 @@ a:hover img.CENTRE_PHOTO_SHOW width:280px; text-align:left; vertical-align:top; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; } .SOCIAL_FORM_NEW_COMMENT { @@ -2981,9 +2990,9 @@ a:hover img.CENTRE_PHOTO_SHOW max-width:100px; text-align:left; vertical-align:bottom; - white-space:nowrap; - overflow:hidden; - text-overflow:ellipsis; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; } .FOLLOW_USR_ICO { diff --git a/swad_changelog.h b/swad_changelog.h index c45675072..d3c879f4f 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -197,13 +197,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.147.6 (2017-03-04)" +#define Log_PLATFORM_VERSION "SWAD 16.147.7 (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.7: Mar 05, 2017 Changes in layout of social timeline. (216372 lines) Version 16.147.6: Mar 05, 2017 Changes in layout of record card. (216370 lines) 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. diff --git a/swad_social.c b/swad_social.c index 2d659b0ba..cf62e9e75 100644 --- a/swad_social.c +++ b/swad_social.c @@ -169,7 +169,7 @@ static void Soc_WriteSocialNote (const struct SocialNote *SocNot, bool Highlight, bool ShowNoteAlone); static void Soc_WriteTopMessage (Soc_TopMessage_t TopMessage,long UsrCod); -static void Soc_WriteAuthorNote (struct UsrData *UsrDat); +static void Soc_WriteAuthorNote (const struct UsrData *UsrDat); static void Soc_WriteDateTime (time_t TimeUTC); static void Soc_GetAndWriteSocialPost (long PstCod); static void Soc_PutFormGoToAction (const struct SocialNote *SocNot); @@ -1562,7 +1562,6 @@ static void Soc_WriteTopMessage (Soc_TopMessage_t TopMessage,long UsrCod) Act_LinkFormSubmitUnique (ItsMe ? Txt_My_public_profile : Txt_Another_user_s_profile, "SOCIAL_TOP_PUBLISHER"); - Str_LimitLengthHTMLStr (UsrDat.FullName,40); fprintf (Gbl.F.Out,"%s",UsrDat.FullName); Act_FormEnd (); @@ -1581,7 +1580,7 @@ static void Soc_WriteTopMessage (Soc_TopMessage_t TopMessage,long UsrCod) /*****************************************************************************/ // All forms in this function and nested functions must have unique identifiers -static void Soc_WriteAuthorNote (struct UsrData *UsrDat) +static void Soc_WriteAuthorNote (const struct UsrData *UsrDat) { extern const char *Txt_My_public_profile; extern const char *Txt_Another_user_s_profile; @@ -1596,7 +1595,6 @@ static void Soc_WriteAuthorNote (struct UsrData *UsrDat) Act_LinkFormSubmitUnique (ItsMe ? Txt_My_public_profile : Txt_Another_user_s_profile, "DAT_N_BOLD"); - Str_LimitLengthHTMLStr (UsrDat->FullName,16); fprintf (Gbl.F.Out,"%s",UsrDat->FullName); Act_FormEnd (); @@ -2140,7 +2138,6 @@ static void Soc_PutFormToWriteNewPost (void) extern const char *Txt_New_SOCIAL_post; bool ShowPhoto; char PhotoURL[PATH_MAX + 1]; - char FullName[Usr_MAX_BYTES_FULL_NAME + 2]; /***** Start list *****/ fprintf (Gbl.F.Out,"