Skip to content

Commit

Permalink
Change dropdown to open upwards
Browse files Browse the repository at this point in the history
This is because downwards opening could make part of dropdown go out of the window
  • Loading branch information
BornaP committed Jun 15, 2016
1 parent f1481fe commit 14a24cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/database-diagram-modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ export default class DatabaseDiagramModal extends Component {
Save
</div>
<div className="or"></div>
<div className="ui small button simple dropdown">
<div className="ui small right labeled icon button simple upward dropdown">
Export to
<i className="dropdown icon"></i>
<i className="caret up icon"></i>
<div className="menu">
<div className="item"
onClick={() => this.onExportDatabaseDiagram('png')}>
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/components/database-diagram.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@
.marker-arrowheads {
display: none
}

.ui.simple.upward.dropdown > .menu {
top: auto !important;
}

0 comments on commit 14a24cf

Please sign in to comment.