mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Better dropdowns in tabs
This commit is contained in:
parent
6697cb1ee7
commit
5e74c71704
@ -8,7 +8,9 @@ const ContentTypeDropdown = ({updateRequestContentType, activeContentType}) => {
|
||||
|
||||
return (
|
||||
<Dropdown>
|
||||
<button><i className="fa fa-caret-down"></i></button>
|
||||
<button className="tall">
|
||||
<i className="fa fa-caret-down"></i>
|
||||
</button>
|
||||
<ul>
|
||||
{contentTypes.map(contentType => (
|
||||
<li key={contentType}>
|
||||
|
@ -6,7 +6,9 @@ import {PREVIEW_MODES, getPreviewModeName} from '../lib/previewModes'
|
||||
const PreviewModeDropdown = ({updatePreviewMode}) => {
|
||||
return (
|
||||
<Dropdown>
|
||||
<button><i className="fa fa-caret-down"></i></button>
|
||||
<button className="tall">
|
||||
<i className="fa fa-caret-down"></i>
|
||||
</button>
|
||||
<ul>
|
||||
{PREVIEW_MODES.map(previewMode => (
|
||||
<li key={previewMode}>
|
||||
|
@ -31,10 +31,7 @@ $border-color: $hl-md;
|
||||
border-bottom: 1px solid $border-color;
|
||||
border-top: 0 !important;
|
||||
white-space: nowrap;
|
||||
|
||||
* {
|
||||
color: $hl-xxl;
|
||||
}
|
||||
display: flex;
|
||||
|
||||
&:first-child {
|
||||
border-left-color: transparent;
|
||||
@ -45,6 +42,7 @@ $border-color: $hl-md;
|
||||
}
|
||||
|
||||
& > * {
|
||||
color: $hl-xxl;
|
||||
height: 100%;
|
||||
padding-left: $padding-md / 4;
|
||||
padding-right: $padding-md / 4;
|
||||
|
Loading…
Reference in New Issue
Block a user