Version 23.61: Jan 28, 2024 Responsive design.

This commit is contained in:
acanas 2024-01-29 00:11:10 +01:00
parent d1f1db1067
commit 1d32488390
12 changed files with 59 additions and 24 deletions

View File

@ -5234,7 +5234,38 @@ button.PAG_DARK:hover, .PAG_CUR_DARK {background-color:#707070;}
}
}
.TBL_SCROLL tbody
@media only screen and (max-width: 480px)
{ /* For mobile-phones */
.TBL_SCROLL_C2
{
display: block;
overflow-x: auto;
width: 186px;
margin: 0 auto;
}
}
@media only screen and (min-width: 480px) and (max-width: 600px)
{ /* For mobile-phones */
.TBL_SCROLL_C2
{
display: block;
overflow-x: auto;
width: 278px;
margin: 0 auto;
}
}
@media only screen and (min-width: 600px)
{ /* For desktop */
.TBL_SCROLL_C2
{
display: block;
overflow-x: auto;
width: 384px;
margin: 0 auto;
}
}
.TBL_SCROLL tbody,.TBL_SCROLL_C2 tbody
{
display: table;
width: 100%;

View File

@ -555,7 +555,7 @@ static void ID_ShowFormChangeUsrID (Usr_MeOrOther_t MeOrOther,bool IShouldFillIn
Ale_ShowAlert (Ale_WARNING,Txt_Please_fill_in_your_ID);
/***** Begin table *****/
HTM_TABLE_BeginWidePadding (2);
HTM_TABLE_BeginPadding (2);
/***** List existing user's IDs *****/
for (NumID = 0;

View File

@ -633,10 +633,11 @@ Me sale este error, no s
"can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
*/
#define Log_PLATFORM_VERSION "SWAD 23.60.3 (2024-01-26)"
#define CSS_FILE "swad23.58.1.css"
#define Log_PLATFORM_VERSION "SWAD 23.61 (2024-01-28)"
#define CSS_FILE "swad23.61.css"
#define JS_FILE "swad23.53.6.js"
/*
Version 23.61: Jan 28, 2024 Responsive design. (335753 lines)
Version 23.60.3: Jan 26, 2024 Responsive design in figures about institutions. (335720 lines)
Version 23.60.2: Jan 26, 2024 Responsive design in search for users. (335714 lines)
Version 23.60.1: Jan 26, 2024 Code refactoring in my groups. (335713 lines)

View File

@ -1025,7 +1025,7 @@ void Mai_ShowFormChangeMyEmail (bool IMustFillInEmail,bool IShouldConfirmEmail)
HTM_SECTION_Begin (Mai_EMAIL_SECTION_ID);
/***** Begin box *****/
Box_BoxBegin ("100%",Txt_Email,
Box_BoxBegin (NULL,Txt_Email,
Acc_PutLinkToRemoveMyAccount,NULL,
Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
@ -1054,7 +1054,7 @@ void Mai_ShowFormChangeOtherUsrEmail (void)
HTM_SECTION_Begin (Mai_EMAIL_SECTION_ID);
/***** Begin box *****/
Box_BoxBegin ("100%",Txt_Email,
Box_BoxBegin (NULL,Txt_Email,
NULL,NULL,
Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
@ -1147,7 +1147,7 @@ static void Mai_ShowFormChangeUsrEmail (Usr_MeOrOther_t MeOrOther,
NumEmails = Mai_DB_GetMyEmails (&mysql_res,UsrDat[MeOrOther]->UsrCod);
/***** Begin table *****/
HTM_TABLE_BeginWidePadding (2);
HTM_TABLE_BeginPadding (2);
/***** List emails *****/
for (NumEmail = 1;

View File

@ -332,15 +332,18 @@ static void Msg_PutFormMsgUsrs (struct Msg_Messages *Messages,
/***** "To:" section (recipients) *****/
HTM_TR_Begin (NULL);
HTM_TD_TxtColon (Txt_MSG_To);
HTM_TD_Begin ("class=\"LT\"");
/* Label */
Frm_LabelColumn ("REC_C1_BOT RT","",Txt_MSG_To);
/* Data */
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
if (Messages->ShowOnlyOneRecipient)
/***** Show only one user as recipient *****/
Msg_ShowOneUniqueRecipient ();
else
{
/***** Show potential recipients *****/
HTM_TABLE_Begin ("TBL_SCROLL");
HTM_TABLE_Begin ("TBL_SCROLL_C2");
if (ShowUsrsInCrs)
{
Usr_ListUsersToSelect (Rol_TCH,&Gbl.Usrs.Selected); // All teachers in course
@ -591,9 +594,9 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (struct Msg_Messages *Messag
/* Data */
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\""
" class=\"REC_C2_BOT_INPUT INPUT_%s\" rows=\"2\"",
The_GetSuffix ());
HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\""
" class=\"REC_C2_BOT_INPUT INPUT_%s\" rows=\"2\"",
The_GetSuffix ());
/* If message is a reply ==> get original message */
if (MsgCod > 0) // It's a reply

View File

@ -204,7 +204,7 @@ void Net_ShowFormMyWebsAndSocialNets (void)
/***** Begin box *****/
HTM_DIV_Begin ("class=\"REC_CONT\"");
Box_BoxBegin ("100%",Txt_Webs_social_networks,
Box_BoxBegin (NULL,Txt_Webs_social_networks,
Net_PutIconsWebsSocialNetworks,NULL,
Hlp_PROFILE_Webs,Box_NOT_CLOSABLE);

View File

@ -223,7 +223,7 @@ static void Nck_ShowFormChangeUsrNickname (Usr_MeOrOther_t MeOrOther,
Ale_ShowAlert (Ale_WARNING,Txt_Before_going_to_any_other_option_you_must_fill_your_nickname);
/***** Begin table *****/
HTM_TABLE_BeginWidePadding (2);
HTM_TABLE_BeginPadding (2);
/***** List nicknames *****/
for (NumNick = 1;

View File

@ -755,7 +755,7 @@ void Pwd_ShowFormChgOtherUsrPwd (void)
Usr_PutParOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EnUsrCod);
/* New password */
HTM_TABLE_BeginWidePadding (2);
HTM_TABLE_BeginPadding (2);
Pwd_PutFormToGetNewPasswordTwice ();
HTM_TABLE_End ();

View File

@ -226,14 +226,14 @@ void PrgRsc_ListItemResources (Prg_ListingType_t ListingType,
switch (ViewingOrEditing[ListingType])
{
case Vie_VIEW:
Box_BoxBegin ("100%",NULL,
Box_BoxBegin (NULL,NULL,
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
break;
case Vie_EDIT:
if (asprintf (&Title,Txt_Resources_of_X,Item->Title) < 0)
Err_NotEnoughMemoryExit ();
Box_BoxBegin ("100%",Title,
Box_BoxBegin (NULL,Title,
PrgRsc_PutIconsResources[ViewingOrEditingResourcesOfThisItem],
&Item->Hierarchy.ItmCod,
Hlp_COURSE_Program,Box_NOT_CLOSABLE);

View File

@ -1246,7 +1246,7 @@ static void Rec_ShowRecordOneTchCrs (void)
{
HTM_DIV_Begin ("class=\"REC_RIGHT\"");
Timetable.Type = Tmt_TUTORING_TIMETABLE;
Box_BoxBegin ("100%",Txt_TIMETABLE_TYPES[Timetable.Type],
Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type],
NULL,NULL,
Hlp_USERS_Teachers_timetable,Box_NOT_CLOSABLE);
Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Other.UsrDat.UsrCod);
@ -1362,7 +1362,7 @@ static void Rec_ListRecordsTchs (Rec_SharedRecordViewType_t TypeOfView)
{
HTM_DIV_Begin ("class=\"REC_RIGHT\"");
Timetable.Type = Tmt_TUTORING_TIMETABLE;
Box_BoxBegin ("100%",Txt_TIMETABLE_TYPES[Timetable.Type],
Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type],
NULL,NULL,
Gbl.Action.Act == ActSeeRecSevTch ? Hlp_USERS_Teachers_timetable :
NULL,
@ -1644,7 +1644,7 @@ static void Rec_ShowCrsRecord (Rec_CourseRecordViewType_t TypeOfView,
}
/***** Begin box and table *****/
Box_BoxTableBegin ("100%",NULL,
Box_BoxTableBegin (NULL,NULL,
NULL,NULL,
Rec_RecordHelp[TypeOfView],Box_NOT_CLOSABLE,2);

View File

@ -167,7 +167,7 @@ void Rub_ListAllRubrics (struct Rub_Rubrics *Rubrics)
Rubrics->CurrentPage = (unsigned) Pagination.CurrentPage;
/***** Begin box *****/
Box_BoxBegin ("100%",Txt_Rubrics,
Box_BoxBegin (NULL,Txt_Rubrics,
Rub_PutIconsListRubrics,Rubrics,
Hlp_ASSESSMENT_Rubrics,Box_NOT_CLOSABLE);

View File

@ -308,7 +308,7 @@ static void Sta_PutFormCrsHits (struct Sta_Stats *Stats)
/* Data */
HTM_TD_Begin ("class=\"REC_C2_BOT LT FORM_IN_%s\"",
The_GetSuffix ());
HTM_TABLE_Begin ("TBL_SCROLL");
HTM_TABLE_Begin ("TBL_SCROLL_C2");
Usr_ListUsersToSelect (Rol_TCH,&Gbl.Usrs.Selected);
Usr_ListUsersToSelect (Rol_NET,&Gbl.Usrs.Selected);
Usr_ListUsersToSelect (Rol_STD,&Gbl.Usrs.Selected);
@ -933,7 +933,7 @@ static void Sta_ShowHits (Sta_GlobalOrCourseAccesses_t GlobalOrCourse)
{
/***** Put the table with the clicks *****/
if (Stats.ClicksGroupedBy == Sta_CLICKS_CRS_DETAILED_LIST)
Box_BoxBegin ("100%",Txt_List_of_detailed_clicks,
Box_BoxBegin (NULL,Txt_List_of_detailed_clicks,
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
else