diff --git a/app/components/chrome/HeaderColumnButtonDropdown.tsx b/app/components/chrome/HeaderColumnButtonDropdown.tsx index 89fb3279..ab08f88a 100644 --- a/app/components/chrome/HeaderColumnButtonDropdown.tsx +++ b/app/components/chrome/HeaderColumnButtonDropdown.tsx @@ -12,30 +12,24 @@ const HeaderColumnButtonDropdown: React.FunctionComponent - {(icon !== '') && (typeof icon === 'string') - ?
- : icon + {React.isValidElement(icon) + ? icon + :
} {(label !== '') &&
{label}
} -
+
{showMenu ?
 
:
 
diff --git a/app/scss/_dataset.scss b/app/scss/_dataset.scss index c01db311..9237dd56 100644 --- a/app/scss/_dataset.scss +++ b/app/scss/_dataset.scss @@ -54,6 +54,11 @@ $header-font-size: .9rem; $header-column-border: 1px solid #66737b; + .header-left { + flex: 1; + display: flex; + } + .header-right { flex: 1; display: flex; @@ -72,6 +77,11 @@ $header-font-size: .9rem; display: inline-flex; flex-direction: row; align-items: center; + position: relative; + + &.header-column-dropdown, &.current-dataset { + padding-right: 0; + } .header-column-icon { .icon-inline { @@ -108,8 +118,11 @@ $header-font-size: .9rem; .header-column-arrow { height: 100%; - width: 26px; - padding-left: 9px; + width: 32px; + margin-left: 9px; + display: flex; + justify-content: center; + background-color: rgba(0,0,0,0.1); } &:hover { @@ -129,18 +142,15 @@ $header-font-size: .9rem; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; - position: absolute; + align-self: center; &.expand { border-top: 5px solid #fff; - right: 15px; - top: 24px; } &.collapse { border-bottom: 5px solid #fff; - right: 15px; - top: 24px; + } } }