mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 16:44:27 +01:00
chore: align request method
This commit is contained in:
parent
907f44d351
commit
951014cca2
@ -1,6 +1,16 @@
|
||||
import styled from 'styled-components';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
font-size: 0.6875rem;
|
||||
display: flex;
|
||||
align-self: stretch;
|
||||
align-items: center;
|
||||
|
||||
span {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
.method-get { color: var(--color-method-get);}
|
||||
.method-post { color: var(--color-method-post);}
|
||||
.method-put { color: var(--color-method-put);}
|
||||
|
@ -20,7 +20,9 @@ const RequestMethod = ({item}) => {
|
||||
|
||||
return (
|
||||
<StyledWrapper>
|
||||
<span className={getClassname(item.request.method)}>{item.request.method}</span>
|
||||
<div className={getClassname(item.request.method)}>
|
||||
<span>{item.request.method}</span>
|
||||
</div>
|
||||
</StyledWrapper>
|
||||
);
|
||||
};
|
||||
|
@ -93,7 +93,7 @@ const CollectionItem = ({item, collectionUid}) => {
|
||||
|
||||
<div className="ml-1 flex items-center">
|
||||
<RequestMethod item={item}/>
|
||||
{item.name}
|
||||
<div>{item.name}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="menu-icon pr-2">
|
||||
|
Loading…
Reference in New Issue
Block a user