Skip to content

Commit

Permalink
fix: fine tuning list-announcements (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG authored Jan 13, 2025
1 parent 374bf74 commit 1209912
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/onecx/docker-spa-base:1.9.0
FROM ghcr.io/onecx/docker-spa-base:1.10.0

# Copy nginx configuration
COPY nginx/locations.conf $DIR_LOCATION/locations.conf
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"build": "ng build",
"check": "ng lint --cache=true && npx prettier -c --cache .",
"clean": "npm cache clean --force && ng cache clean && rm -rf dist reports .angular .eslintcache ./node_modules/.cache/prettier/.prettier-cache",
"clean": "npm cache clean --force && ng cache clean && rm -rf *.log dist reports .angular .eslintcache ./node_modules/.cache/prettier/.prettier-cache",
"lint": "ng lint --cache=true",
"format": "ng lint --fix",
"eslint": "eslint --quiet --ext .js,.ts src",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<ng-container *ngIf="announcements$ | async as announcements">
<div
*ngIf="announcements.length > 0"
[ocxContent]="'ANNOUNCEMENT.LIST-ACTIVE.TITLE' | translate"
class="min-height-10rem surface-200"
>
<div class="pr-2 flex flex-column row-gap-2 max-h-20rem overflow-x-hidden overflow-y-auto">
<div *ngIf="announcements.length > 0" class="card surface-200">
<div class="mb-3 sm:mb-4 font-medium text-lg">{{ 'ANNOUNCEMENT.LIST-ACTIVE.TITLE' | translate }}</div>
<div class="px-1 flex flex-column row-gap-2 max-h-20rem overflow-x-hidden overflow-y-auto">
<a
*ngFor="let announcement of announcements; let i = index"
class="announcement-row block flex flex-row flex-nowrap justify-content-start align-items-center column-gap-3 border-none border-bottom-1 border-solid border-gray-400 cursor-pointer"
Expand Down

0 comments on commit 1209912

Please sign in to comment.