Skip to content

Commit

Permalink
[MNT-23433] passing close button position
Browse files Browse the repository at this point in the history
  • Loading branch information
AnukritiGL committed Dec 12, 2023
1 parent a70e317 commit e11c763
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/src/app.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,6 @@
"downloadPromptReminderDelay": 30,
"enableFileAutoDownload": true,
"fileAutoDownloadSizeThresholdInMB": 15,
"isCloseButtonOnLeft": false
"closeButtonPosition": "right"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
[nodeId]="nodeId"
[versionId]="versionId"
[allowNavigate]="navigateMultiple"
[allowRightSidebar]="true"
[allowRightSidebar]="false"
[allowPrint]="false"
[showRightSidebar]="true"
[allowDownload]="false"
[allowFullScreen]="false"
[overlayMode]="true"
[allowGoBack]="'viewer.isCloseButtonOnLeft' | adfAppConfig: false"
[closeButtonPosition]="'viewer.closeButtonPosition' | adfAppConfig: 'right'"
(showViewerChange)="onViewerVisibilityChanged()"
[canNavigateBefore]="!!previousNodeId"
[canNavigateNext]="!!nextNodeId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,10 @@
}
}

.adf-viewer-close-button {
.adf-right-close-button {
padding-left: 12px;
}

// todo: remove this when viewer supports extensions
.adf-viewer-toolbar > * > button:nth-last-child(3) {
display: none;
}

.adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right {
width: 0;
}
Expand Down

0 comments on commit e11c763

Please sign in to comment.