-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a scrollbar to the duplicate import modal #71
Add a scrollbar to the duplicate import modal #71
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good! I tested it and it looks great.
Thanks a lot for your contribution.
Just a few things to change.
@@ -323,6 +325,15 @@ export default { | |||
display: flex; | |||
flex-direction: column; | |||
align-items: baseline; | |||
max-height: 50vh; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
max-height: 50vh; | |
max-height: 210px; |
In order to keep the same max-height as the related types modal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change done!
@@ -21,31 +21,33 @@ | |||
|
|||
<div class="apos-import-duplicate__section"> | |||
<table class="apos-table"> | |||
<thead> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
position: sticky; | ||
top: 0; | ||
z-index: 1; | ||
backgroud-color: var(--a-base-10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
position: sticky; | |
top: 0; | |
z-index: 1; | |
backgroud-color: var(--a-base-10); | |
position: sticky; | |
top: 0; | |
background-color: var(--a-background-primary); |
sticky
, good stuff.- no need for z-index it appears
- please change background color to white (
var(--a-background-primary)
) and fix typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DOne!
CHANGELOG.md
Outdated
@@ -1,5 +1,11 @@ | |||
# Changelog | |||
|
|||
## 2.3.0 (2024-07-24) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 2.3.0 (2024-07-24) | |
## UNRELEASED |
We will set the version and the date when we will release the module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@@ -243,7 +245,7 @@ export default { | |||
: this.duplicatedDocs.map(({ aposDocId }) => aposDocId); | |||
}, | |||
docLabel(doc) { | |||
const moduleOptions = apos.modules[this.type]; | |||
const moduleOptions = apos.modules[doc.type]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes! 👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Changes are done now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
…-duplicate-imports-modal
Summary
The apostrophe duplicate imports modal component displays a table of all duplicated docs, that can overflow the visible area when there are too many duplicates (> 50). To improve usability, I added a vertical scrollbar with a maximum height of 50vh to the table body and introduce a sticky thead to keep the table headers visible while scrolling.
I also fixed the type column values: Previously, only 'Page' was displayed, regardless of the actual document type. With this fix, the correct document type will now be displayed in the type column, ensuring accurate representation of each document's type.
What are the specific steps to test this change?
What kind of change does this PR introduce?
Make sure the PR fulfills these requirements:
If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.
Other information: