Skip to content

Commit c1fe7e0

Browse files
rschuchmannfproske
authored andcommitted
[launcher] Move app id field to top left corner
1 parent ae69734 commit c1fe7e0

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

css/styles.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,21 @@ body:not(.edit-mode-active) .launch-app-box:hover {
446446
overflow: hidden;
447447
white-space: nowrap;
448448
}
449+
.app-id-position {
450+
left: 0;
451+
position: absolute;
452+
top: 0;
453+
margin: 15px;
454+
z-index: 2;
455+
max-width: 60%;
456+
}
449457
.app-version-field {
450458
right: 0;
451459
position: absolute;
452460
top: 0;
453461
margin: 15px;
454462
z-index: 2;
455-
max-width: 80%;
463+
max-width: 30%;
456464
}
457465
.app-authors-field {
458466
right: 0;
@@ -470,7 +478,7 @@ body:not(.edit-mode-active) .launch-app-box:hover {
470478
max-height: 35px;
471479
}
472480
.app-desc {
473-
max-height: 65px;
481+
max-height: 85px;
474482
}
475483
.app-desc.editable {
476484
overflow: auto;
@@ -487,7 +495,7 @@ body:not(.edit-mode-active) .launch-app-box:hover {
487495
}
488496
.app-desc-fixed {
489497
display: -webkit-box;
490-
-webkit-line-clamp: 3;
498+
-webkit-line-clamp: 4;
491499
-webkit-box-orient: vertical;
492500
}
493501
.sub-header {

renderer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ $(() => {
734734
<label id="appDbPathLabel_${unicodeToHTMLID(app.id)}" class="custom-file-label dbpath" for="appDbPath_${unicodeToHTMLID(app.id)}">${app.dbpath ? escapeHtml(app.dbpath) : escapeHtml(lang.appDbPathPlaceholder)}</label>
735735
<small data-id="${unicodeToHTMLID(app.id)}" class="form-text reset-db-path" style="${app.dbpath ? '' : 'display:none'}">${escapeHtml(lang.appDbPathReset)}</small>
736736
</div>
737-
<div class="app-id-field" style="display:none;" title="${escapeHtml(app.id)}">
737+
<div class="app-id-field app-id-position" style="display:none;" title="${escapeHtml(app.id)}">
738738
<small>ID: <i>${escapeHtml(app.id)}</i></small>
739739
</div>
740740
${

server/admin/srcjs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ function refreshConfigList() {
530530
<div style="height:1rem"></div>
531531
</div>
532532
<button id="appEnv_${index}" data-id="${idEncoded}" class="btn btn-secondary open-config-btn" style="display:none;" type="button">Advanced Settings</button>
533-
<div class="app-id-field" title="${appIdSafe}">
533+
<div class="app-id-field app-id-position" title="${appIdSafe}">
534534
<small>ID: <i>${appIdSafe}</i></small>
535535
</div>
536536
${(configData.version != null && configData.version !== '') ? `<div class="app-id-field app-version-field" title="${escapeHtml(configData.version)}">

server/admin/www/styles.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,13 +459,21 @@ a:hover {
459459
overflow: hidden;
460460
white-space: nowrap;
461461
}
462+
.app-id-position {
463+
left: 0;
464+
position: absolute;
465+
top: 0;
466+
margin: 15px;
467+
z-index: 2;
468+
max-width: 60%;
469+
}
462470
.app-version-field {
463471
right: 0;
464472
position: absolute;
465473
top: 0;
466474
margin: 15px;
467475
z-index: 2;
468-
max-width: 80%;
476+
max-width: 30%;
469477
}
470478
.app-authors-field {
471479
right: 0;
@@ -483,7 +491,7 @@ a:hover {
483491
max-height: 35px;
484492
}
485493
.app-desc {
486-
max-height: 65px;
494+
max-height: 85px;
487495
}
488496
.app-desc.editable {
489497
overflow: auto;
@@ -512,7 +520,7 @@ a:hover {
512520
}
513521
.app-desc-fixed {
514522
display: -webkit-box;
515-
-webkit-line-clamp: 3;
523+
-webkit-line-clamp: 4;
516524
-webkit-box-orient: vertical;
517525
}
518526
.sub-header {

0 commit comments

Comments
 (0)