Skip to content

Commit

Permalink
fix: fine tuning list bookmarks (#181)
Browse files Browse the repository at this point in the history
* fix: fine tuning list bookmarks

* fix: try to fix code smell
  • Loading branch information
HenryT-CG authored Jan 13, 2025
1 parent 2abdae3 commit 11e1a3e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 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
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<ocx-portal-page
permission="BOOKMARK#VIEW"
helpArticleId="PAGE_BOOKMARK_SEARCH"
*ngrxLet="viewModel$ as vm; error as err; complete as done"
>
<ocx-portal-page permission="BOOKMARK#VIEW" helpArticleId="PAGE_BOOKMARK_SEARCH" *ngrxLet="viewModel$ as vm">
<ocx-page-header
[header]="'BOOKMARK_SEARCH.HEADER' | translate"
[subheader]="'BOOKMARK_SEARCH.SUB_HEADER' | translate"
Expand Down
3 changes: 2 additions & 1 deletion src/app/bookmark/bookmark-search/bookmark-search.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ export class BookmarkSearchEffects {
)
}
const saveAction = (editable: boolean) => {
return editable
const button = editable
? { key: 'ACTIONS.SAVE', icon: PrimeIcons.SAVE }
: { key: 'ACTIONS.NAVIGATION.CLOSE', icon: PrimeIcons.TIMES }
return button
}
return this.actions$.pipe(
ofType(BookmarkSearchActions.viewOrEditBookmark),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="p-1 flex flex-column gap-1 max-h-16rem overflow-auto">
<div class="p-1 flex flex-column gap-1 max-h-17rem overflow-auto">
@for (bookmark of bookmarks; track $index) {
<a [routerLink]="getUrl(bookmark) | async" class="mt-1 p-1 border-round bookmark-link font-italic text-primary">
{{ bookmark.displayName }}
Expand Down
4 changes: 2 additions & 2 deletions src/app/remotes/bookmark-list/bookmark-list.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="card min-height-10rem surface-200">
<div class="mb-3 font-medium text-lg">{{'REMOTES.BOOKMARK_LIST.TITLE' | translate}}</div>
<div class="card surface-200">
<div class="mb-2 sm:mb-3 font-medium text-lg">{{'REMOTES.BOOKMARK_LIST.TITLE' | translate}}</div>

<p-tabView *ngIf="!bookmarkLoadingError && !loading; else loadingSpinner">
<p-tabPanel
Expand Down
8 changes: 5 additions & 3 deletions src/app/remotes/bookmark-list/bookmark-list.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
@include tabview-fix-color-selected-tab;

:host ::ng-deep {
.p-tabview .p-tabview-panels {
padding: 0.3rem 0 0 0;
.p-tabview {
.p-tabview-panels {
padding: 0.3rem 0 0 0;
}
}

.p-tabview-nav-container,
.p-tabview-nav-link,
.p-tabview-panels {
background-color: var(--surface-200) !important;
background-color: inherit !important;
}
}

0 comments on commit 11e1a3e

Please sign in to comment.