mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-23 07:09:01 +01:00
fix: align folder settings pane + scripts with request pane (#2817)
This commit is contained in:
parent
b23a866e60
commit
85ad4c0159
@ -44,8 +44,8 @@ const Script = ({ collection, folder }) => {
|
|||||||
<div className="text-xs mb-4 text-muted">
|
<div className="text-xs mb-4 text-muted">
|
||||||
Pre and post-request scripts that will run before and after any request inside this folder is sent.
|
Pre and post-request scripts that will run before and after any request inside this folder is sent.
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-1 mt-2">
|
<div className="flex flex-col flex-1 mt-2 gap-y-2">
|
||||||
<div className="mb-1 title text-xs">Pre Request</div>
|
<div className="title text-xs">Pre Request</div>
|
||||||
<CodeEditor
|
<CodeEditor
|
||||||
collection={collection}
|
collection={collection}
|
||||||
value={requestScript || ''}
|
value={requestScript || ''}
|
||||||
@ -56,8 +56,8 @@ const Script = ({ collection, folder }) => {
|
|||||||
font={get(preferences, 'font.codeFont', 'default')}
|
font={get(preferences, 'font.codeFont', 'default')}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-1 mt-6">
|
<div className="flex flex-col flex-1 mt-2 gap-y-2">
|
||||||
<div className="mt-1 mb-1 title text-xs">Post Response</div>
|
<div className="title text-xs">Post Response</div>
|
||||||
<CodeEditor
|
<CodeEditor
|
||||||
collection={collection}
|
collection={collection}
|
||||||
value={responseScript || ''}
|
value={responseScript || ''}
|
||||||
|
@ -50,7 +50,7 @@ const FolderSettings = ({ collection, folder }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledWrapper>
|
<StyledWrapper className="flex flex-col h-full">
|
||||||
<div className="flex flex-col h-full relative px-4 py-4">
|
<div className="flex flex-col h-full relative px-4 py-4">
|
||||||
<div className="flex flex-wrap items-center tabs" role="tablist">
|
<div className="flex flex-wrap items-center tabs" role="tablist">
|
||||||
<div className={getTabClassname('headers')} role="tab" onClick={() => setTab('headers')}>
|
<div className={getTabClassname('headers')} role="tab" onClick={() => setTab('headers')}>
|
||||||
|
Loading…
Reference in New Issue
Block a user