Skip to content

Commit

Permalink
ui: no overflow for records
Browse files Browse the repository at this point in the history
overflow was added for #119 in Auctions page Bids,
but also affected Records in Domain Manager
  • Loading branch information
rithvikvibhu committed Feb 6, 2022
1 parent c1288f5 commit c241c5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/components/Collapsible/collapsible.scss
Expand Up @@ -38,7 +38,6 @@
// padding: 1rem;
position: relative;
max-height: 35rem;
overflow-y: auto;
height: auto;
transition: 0.5s ease-out;

Expand All @@ -48,5 +47,9 @@
overflow: hidden;
transition: 0.5s ease-out;
}

&--overflowY {
overflow-y: auto;
}
}
}
5 changes: 4 additions & 1 deletion app/components/Collapsible/index.js
Expand Up @@ -10,11 +10,13 @@ export default class Collapsible extends Component {
className: PropTypes.string,
defaultCollapsed: PropTypes.bool,
children: PropTypes.node.isRequired,
overflowY: PropTypes.bool,
};

static defaultProps = {
className: '',
defaultCollapsed: false,
overflowY: true,
};

static contextType = I18nContext;
Expand Down Expand Up @@ -65,7 +67,8 @@ export default class Collapsible extends Component {
renderContent() {
return (
<div className={cn('collapsible__content', {
'collapsible__content--hidden': this.state.isCollapsed
'collapsible__content--hidden': this.state.isCollapsed,
'collapsible__content--overflowY': this.props.overflowY,
})} >
{ this.props.children }
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/pages/MyDomain/index.js
Expand Up @@ -154,7 +154,7 @@ class MyDomain extends Component {
<Collapsible className="my-domain__info-panel" title={t('domainDetails')} defaultCollapsed>
<DomainDetails name={name} />
</Collapsible>
<Collapsible className="my-domain__info-panel" title={t('records')}>
<Collapsible className="my-domain__info-panel" title={t('records')} overflowY={false}>
<Records
name={name}
transferring={!!domain.info && domain.info.transfer !== 0}
Expand Down

0 comments on commit c241c5d

Please sign in to comment.