Skip to content

Commit

Permalink
WEBUI-1289 BACKPORT: Fix UI issues in nuxeo-document-import when zoom in
Browse files Browse the repository at this point in the history
  • Loading branch information
shadwal-sinha committed Mar 12, 2024
1 parent ea614ad commit edf3951
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
21 changes: 17 additions & 4 deletions elements/document/nuxeo-document-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Polymer({
#blobEditor {
@apply --layout-flex-3;
min-height: 66px;
}
#blobList {
Expand Down Expand Up @@ -155,7 +156,7 @@ Polymer({
@apply --layout-vertical;
@apply --layout-flex;
background: var(--nuxeo-page-background);
min-width: 200px;
min-width: 100px;
}
.blobCheck {
Expand Down Expand Up @@ -319,6 +320,10 @@ Polymer({
padding-left: 8px;
}
.upload-error:empty {
display: none;
}
.upload-error:not(:empty) {
border-left: 4px solid var(--nuxeo-warn-text, #de350b);
}
Expand Down Expand Up @@ -370,6 +375,14 @@ Polymer({
color: var(--nuxeo-link-hover-color, #0066ff);
font: inherit;
}
.heightFix {
height: fit-content;
}
.widthFix {
width: 100%;
}
</style>
<nuxeo-connection id="nx"></nuxeo-connection>
Expand All @@ -385,7 +398,7 @@ Polymer({
<iron-a11y-keys keys="enter" on-keys-pressed="_submitKeyHandler"></iron-a11y-keys>
<iron-pages selected="[[stage]]" attr-for-selected="name" class="vertical layout flex">
<iron-pages selected="[[stage]]" attr-for-selected="name" class="vertical layout flex widthFix">
<!--Stage: allow the user to upload files-->
<div name="upload" class="upload vertical layout flex" tabindex="0">
<div class="suggester">
Expand Down Expand Up @@ -651,7 +664,7 @@ Polymer({
</paper-dialog-scrollable>
</div>
<div class="buttons horizontal justified layout">
<paper-button noink dialog-dismiss on-tap="_cancel" hidden$="[[_creating]]" class="secondary">
<paper-button noink dialog-dismiss on-tap="_cancel" hidden$="[[_creating]]" class="secondary heightFix">
[[i18n('command.cancel')]]
</paper-button>
Expand Down Expand Up @@ -686,7 +699,7 @@ Polymer({
<paper-button
noink
class="primary"
class="primary heightFix"
name="createWithProperties"
on-tap="_importWithProperties"
disabled$="[[!_canImportWithMetadata(_creating,_initializingDoc,canCreate,hasLocalFilesUploaded,hasRemoteFiles,localFiles.*,remoteFiles.*)]]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ Polymer({
width: 100%;
}
.widthFix {
width: 100%;
}
iron-pages {
@apply --layout-flex;
@apply --layout-horizontal;
Expand All @@ -88,7 +92,7 @@ Polymer({
<nuxeo-slot name="CREATE_POPUP_ITEMS" model="[[importContext]]"></nuxeo-slot>
</paper-tabs>
<div id="holder" class="vertical layout flex">
<iron-pages selected="[[selectedTab]]" attr-for-selected="name" selected-attribute="visible">
<iron-pages selected="[[selectedTab]]" attr-for-selected="name" class="widthFix" selected-attribute="visible">
<nuxeo-slot name="CREATE_POPUP_PAGES" model="[[importContext]]"></nuxeo-slot>
<nuxeo-document-create
id="simpleCreation"
Expand All @@ -100,6 +104,7 @@ Polymer({
<nuxeo-document-import
id="bulkCreation"
name="import"
class="widthFix"
parent="[[parent]]"
target-path="{{parentPath}}"
suggester-children="{{suggesterChildren}}"
Expand Down

0 comments on commit edf3951

Please sign in to comment.