Skip to content

Commit

Permalink
Change the tile display in Place list
Browse files Browse the repository at this point in the history
Change the tile display in Place list:
for the place with picture, the tile are increased from 60px height to 100px height
The blury effect has been removed (on the place list only)
display 100 char instead of 55 before truncate with ...
  • Loading branch information
AleziaKurdis authored Feb 9, 2025
1 parent 7a59a27 commit 295c25a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/system/places/places.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// places.css
//
// Created by Alezia Kurdis, January 1st, 2022.
// Copyright 2022 Overte e.V.
// Copyright 2022-2025 Overte e.V.
//
// css for the ui of the Places application.
//
Expand Down Expand Up @@ -491,6 +491,10 @@ div.placeEntryLargeSize {
height: 220px;
}

div.placeEntryMediumSize {
height: 100px;
}

div.addMsEntry {
width: 85%;
height: 38px;
Expand Down
10 changes: 9 additions & 1 deletion scripts/system/places/places.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// places.html
//
// Created by Alezia Kurdis, January 1st, 2022.
// Copyright 2022 Overte e.V.
// Copyright 2022-2025 Overte e.V.
//
// html for the ui of the Places application.
//
Expand Down Expand Up @@ -421,6 +421,9 @@
}

var maxCharNumber = 55;
if (currentListFormat === "PLACES" && placeRecords[i].category === "A") {
maxCharNumber = 110;
}
if (currentListFormat === "PLACES" && i === 0) {
maxCharNumber = 180;
}
Expand All @@ -441,6 +444,11 @@
var promoted = "";
var placeTitlePromoted = "";
var prompotionDescHeight = "";
if (currentListFormat === "PLACES" && placeRecords[i].category === "A") {
promoted = " placeEntryMediumSize";
promotedblur = " promotedblur";
prompotionDescHeight = " style='height: 60px; '";
}
if (currentListFormat === "PLACES" && i === 0) {
promotedblur = " promotedblur";
promoted = " placeEntryLargeSize";
Expand Down

0 comments on commit 295c25a

Please sign in to comment.