diff --git a/services/web/frontend/js/features/project-list/components/welcome-message-new/welcome-message-create-new-project-dropdown.tsx b/services/web/frontend/js/features/project-list/components/welcome-message-new/welcome-message-create-new-project-dropdown.tsx index 13ad86cc84..be5455b7c1 100644 --- a/services/web/frontend/js/features/project-list/components/welcome-message-new/welcome-message-create-new-project-dropdown.tsx +++ b/services/web/frontend/js/features/project-list/components/welcome-message-new/welcome-message-create-new-project-dropdown.tsx @@ -126,85 +126,91 @@ function WelcomeMessageCreateNewProjectDropdown({ return ( -

{t('create_a_new_project')}

- - {showDropdown && ( -
- - - - {isOverleaf && ( +
+
+

{t('create_a_new_project')}

+ + {showDropdown && ( +
+ - )} - {portalTemplates.length > 0 ? ( - <> -
-
- {t('institution_templates')} -
- {portalTemplates?.map((portalTemplate, index) => ( - - handlePortalTemplateClick(e, portalTemplate.name) - } - > - {portalTemplate.name} - - ))} - - ) : null} -
- )} + + {isOverleaf && ( + + )} + {portalTemplates.length > 0 ? ( + <> +
+
+ {t('institution_templates')} +
+ {portalTemplates?.map((portalTemplate, index) => ( + + handlePortalTemplateClick(e, portalTemplate.name) + } + > + {portalTemplate.name} + + ))} + + ) : null} +
+ )} +
} bs5={ - + -

{title}

- - +
+ +

{title}

+ +
+
) } diff --git a/services/web/frontend/stylesheets/app/project-list-react.less b/services/web/frontend/stylesheets/app/project-list-react.less index aa70b2ac8c..1716aa433c 100644 --- a/services/web/frontend/stylesheets/app/project-list-react.less +++ b/services/web/frontend/stylesheets/app/project-list-react.less @@ -98,6 +98,16 @@ } } + .welcome-message-card-item { + display: flex; + flex: 1; + flex-direction: column; + + @media (min-width: @screen-md-min) { + flex: 0 1 310px; + } + } + .welcome-message-card { border: 1px solid @neutral-20; border-radius: 16px; @@ -115,6 +125,7 @@ @media (min-width: @screen-md-min) { margin: 0 15px; height: 240px; + width: auto; } &:hover { @@ -122,6 +133,8 @@ } .welcome-message-card-img { + max-width: 100%; + @media (min-width: @screen-md-min) { margin-bottom: 20px; } @@ -159,7 +172,7 @@ } > a { - color: @ol-blue-gray-3; + color: @gray-dark; display: block; &:hover { @@ -179,7 +192,7 @@ &, &:hover { text-decoration: none; - color: @ol-blue-gray-3; + color: @gray-dark; } } } diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/project-list.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/project-list.scss index a9fc0f7127..8b775fe8ca 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/project-list.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/project-list.scss @@ -115,7 +115,6 @@ justify-content: space-between; padding: var(--spacing-08) var(--spacing-06); margin: var(--spacing-05) 0; - width: 280px; height: 200px; position: relative; cursor: pointer; @@ -130,12 +129,26 @@ } .welcome-message-card-img { + max-width: 100%; + @include media-breakpoint-up(lg) { margin-bottom: var(--spacing-07); } } } + .welcome-message-card-item { + display: flex; + flex: 1; + flex-direction: column; + width: 280px; + + @include media-breakpoint-up(lg) { + flex: 0 1 312px; + width: auto; + } + } + .create-new-project-dropdown { transform: none !important; top: 100% !important; @@ -156,7 +169,7 @@ &, &:hover { text-decoration: none; - color: $neutral-60; + color: var(--bs-body-color); } } }