Skip to content

Commit

Permalink
Improve ui for array of pointer field (#1776)
Browse files Browse the repository at this point in the history
* improve ui for array of pointer field

* Updated changelog.md

* Update CHANGELOG.md

Co-authored-by: Manuel <5673677+mtrezza@users.noreply.github.com>
  • Loading branch information
sadakchap and mtrezza authored Sep 2, 2021
1 parent 1603be9 commit cbeaec0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- fix: date cell value not selected on double clicks (fn-faisal) [#1730](https://github.com/parse-community/parse-dashboard/pull/1730)

## Fixes
- Fixed UI for a field containing an array of pointers (Prerna Mehra) [#1776](https://github.com/parse-community/parse-dashboard/pull/1776)
- Fixed bug when editing or copying a field containing an array of pointers [#1770](https://github.com/parse-community/parse-dashboard/issues/1770) (Prerna Mehra) [#1771](https://github.com/parse-community/parse-dashboard/pull/1771)

# 2.2.0
Expand Down
6 changes: 3 additions & 3 deletions src/components/BrowserCell/BrowserCell.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ export default class BrowserCell extends Component {
/>
);
});
content = <ul>
{ array.map( a => <li>{a}</li>) }
content = <ul className={styles.hasMore}>
{array.map( a => <li>{a}</li>)}
</ul>
this.copyableValue = JSON.stringify(value);
if ( array.length > 1 ) {
classes.push(styles.hasMore);
classes.push(styles.removePadding);
}
}
else {
Expand Down
10 changes: 9 additions & 1 deletion src/components/BrowserCell/BrowserCell.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,19 @@
height: auto;
max-height: 25px;
overflow-y: scroll;
padding-right: 3px;
& > li {
margin-bottom: 2px;
}
}

.removePadding {
padding-right: 3px !important;
}

.hasMore::-webkit-scrollbar {
-webkit-appearance: none!important;
width: 7px!important;
width: 6px!important;
}

.hasMore::-webkit-scrollbar-thumb {
Expand Down

0 comments on commit cbeaec0

Please sign in to comment.