Skip to content

Commit

Permalink
Extend App Launcher App Description Character Limit (#242)
Browse files Browse the repository at this point in the history
* Update app form with 200 char description limit. Update card styling for wider card. Add new logos.

* Updates to cards to match new styling.

* Update card description classes. Update card author font size.

* Add new build.
  • Loading branch information
jbouder authored Apr 19, 2024
1 parent 665db59 commit d319f18
Show file tree
Hide file tree
Showing 16 changed files with 128 additions and 70 deletions.
2 changes: 1 addition & 1 deletion jhub_apps/static/css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified jhub_apps/static/img/logos/bokeh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jhub_apps/static/img/logos/conda-store.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jhub_apps/static/img/logos/custom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jhub_apps/static/img/logos/gradio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jhub_apps/static/img/logos/jupyter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jhub_apps/static/img/logos/panel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jhub_apps/static/img/logos/plotly-dash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jhub_apps/static/img/logos/streamlit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jhub_apps/static/img/logos/voila.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jhub_apps/static/img/logos/vscode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions jhub_apps/static/js/index.js

Large diffs are not rendered by default.

73 changes: 50 additions & 23 deletions ui/src/components/app-card/app-card.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.card {
height: 241px;
width: 225px;
width: 286px;
border-radius: 0.25rem;
box-shadow: 0px 1px 2px rgba(210, 210, 207, 0.7);
}
Expand Down Expand Up @@ -63,13 +63,6 @@
z-index: 111;
height: 110px;
}
.card-content-content .chip-container {
position: absolute;
display: flex;
align-items: center;
left: 12px;
top: 12px;
}

.menu-chip {
margin-right: 4px;
Expand All @@ -87,17 +80,19 @@
position: relative;
overflow: hidden;
transition: all 0.5s ease-in-out;
top: 42px;
padding: 0px;
}

.card-content-container:not(.app-service) {
padding: 12px 0 0 0;
}

.card-content-container.app-service {
top: 15px;
top: 16px;
}

.card-content-content .card-inner-content {
position: relative;
padding-top: 4px;
padding-top: 1px;
}

.card-title {
Expand All @@ -106,31 +101,57 @@
}

.card-author {
max-height: 0;
opacity: 0;
overflow: hidden;
letter-spacing: 0.4px;
}

.card-description {
max-height: 0;
opacity: 0;

max-height: 25px;
max-width: 240px;
overflow: hidden;
text-overflow: ellipsis;
display: block;
text-wrap: nowrap;
}

/* Hover effects */
.card-content-container:hover:not(.no-hover) {
transform: translateY(-36%);
background: #fff;
height: 111px;

.card-content-container-hover-1:hover {
transform: translateY(-25%);
height: 120px;
}

.card-content-container-hover-2:hover {
transform: translateY(-30%);
height: 140px;
}

.card-content-container-hover-3:hover {
transform: translateY(-35%);
height: 160px;
}

.card-content-container-hover-4:hover {
transform: translateY(-40%);
height: 180px;
}

.card-content-container-hover-5:hover {
transform: translateY(-45%);
height: 200px;
}

.card-content-container:hover .card-description {
opacity: 1;
max-height: 4rem;
max-height: 100px;
text-wrap: wrap;
overflow: visible;
}

.card-content-container:hover .card-author:not(.no-hover) {
opacity: 0;
max-height: 0;
opacity: 1;
max-height: 30px;
}

.card-content-content .content {
Expand All @@ -156,3 +177,9 @@
text-overflow: ellipsis;
display: inline-block;
}

@media screen and (max-width: 600px) {
.card {
width: 100%;
}
}
Loading

0 comments on commit d319f18

Please sign in to comment.