-
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
Changes from 4 commits
7e20d4a
4ff29a6
c86dcbb
a8d4da0
83a8e63
465f7fe
31a0061
52902fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Thanks |
||||||||||||||||
<tr> | ||||||||||||||||
<th class="apos-table__header"> | ||||||||||||||||
<AposButton | ||||||||||||||||
class="apos-toggle" | ||||||||||||||||
:class="{ 'apos-toggle--blank': !checked.length }" | ||||||||||||||||
data-apos-test="contextMenuTrigger" | ||||||||||||||||
type="quiet" | ||||||||||||||||
:text-color="checkboxIconColor" | ||||||||||||||||
:icon="checkboxIcon" | ||||||||||||||||
:icon-only="true" | ||||||||||||||||
:icon-size="10" | ||||||||||||||||
@click.stop="toggle" | ||||||||||||||||
/> | ||||||||||||||||
</th> | ||||||||||||||||
<th class="apos-table__header"> | ||||||||||||||||
{{ $t('aposImportExport:title') }} | ||||||||||||||||
</th> | ||||||||||||||||
<th class="apos-table__header"> | ||||||||||||||||
{{ $t('aposImportExport:type') }} | ||||||||||||||||
</th> | ||||||||||||||||
<th class="apos-table__header"> | ||||||||||||||||
{{ $t('aposImportExport:lastEdited') }} | ||||||||||||||||
</th> | ||||||||||||||||
</tr> | ||||||||||||||||
</thead> | ||||||||||||||||
<tbody> | ||||||||||||||||
<tr> | ||||||||||||||||
<th class="apos-table__header"> | ||||||||||||||||
<AposButton | ||||||||||||||||
class="apos-toggle" | ||||||||||||||||
:class="{ 'apos-toggle--blank': !checked.length }" | ||||||||||||||||
data-apos-test="contextMenuTrigger" | ||||||||||||||||
type="quiet" | ||||||||||||||||
:text-color="checkboxIconColor" | ||||||||||||||||
:icon="checkboxIcon" | ||||||||||||||||
:icon-only="true" | ||||||||||||||||
:icon-size="10" | ||||||||||||||||
@click.stop="toggle" | ||||||||||||||||
/> | ||||||||||||||||
</th> | ||||||||||||||||
<th class="apos-table__header"> | ||||||||||||||||
{{ $t('aposImportExport:title') }} | ||||||||||||||||
</th> | ||||||||||||||||
<th class="apos-table__header"> | ||||||||||||||||
{{ $t('aposImportExport:type') }} | ||||||||||||||||
</th> | ||||||||||||||||
<th class="apos-table__header"> | ||||||||||||||||
{{ $t('aposImportExport:lastEdited') }} | ||||||||||||||||
</th> | ||||||||||||||||
</tr> | ||||||||||||||||
<tr | ||||||||||||||||
v-for="doc in duplicatedDocs" | ||||||||||||||||
:key="doc.aposDocId" | ||||||||||||||||
|
@@ -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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Thanks |
||||||||||||||||
|
||||||||||||||||
return moduleOptions?.label | ||||||||||||||||
? this.$t(moduleOptions?.label) | ||||||||||||||||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
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 commentThe reason will be displayed to describe this comment to others. Learn more. Change done! |
||||||||||||||||
overflow-y: auto; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.apos-import-duplicate__section thead { | ||||||||||||||||
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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. DOne! |
||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.apos-import-duplicate__section .apos-table__header { | ||||||||||||||||
|
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.
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!