Skip to content

Commit

Permalink
💄improve css
Browse files Browse the repository at this point in the history
  • Loading branch information
Serpico1899 committed Nov 11, 2023
1 parent fff041a commit 4d7fe29
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
64 changes: 35 additions & 29 deletions src/server/playground/comp/E2E.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export function E2E({ baseUrl }: { baseUrl: string; bodyHeaders?: string }) {
captures: e2eForm.captures.map(({ key, value }) => ({
key,
value,
sequenceIdx: sequnces.length,
sequenceIdx: sequnces.length + 1,
model: parsedHeaderBody.body.model,
act: parsedHeaderBody.body.act,
})),
Expand All @@ -320,7 +320,11 @@ export function E2E({ baseUrl }: { baseUrl: string; bodyHeaders?: string }) {
key,
value,
captured: findedInsideParsedCapture?.captured,
sequenceIdx: findedInsideParsedCapture?.sequenceIdx,
sequenceIdx:
findedInsideParsedCapture?.sequenceIdx ||
findedInsideParsedCapture?.sequenceIdx === 0
? findedInsideParsedCapture?.sequenceIdx + 1
: undefined,
model: findedInsideParsedCapture?.model,
act: findedInsideParsedCapture?.act,
};
Expand Down Expand Up @@ -631,34 +635,36 @@ export function E2E({ baseUrl }: { baseUrl: string; bodyHeaders?: string }) {
{e2eForms.map((e2eForm, idx) => (
<Fragment key={e2eForm.id}>
<div className="sidebar__input-double" key={e2eForm.id}>
{e2eForms.length > 1 && (
<div className="e2e-move-buttons">
<div
className="e2e-move-div"
onClick={() => handleDuplicate(idx)}
>
<AddIcon />
</div>
<div
className="e2e-move-div"
onClick={() => handleMove(idx, idx - 1)}
>
<UpIcon />
</div>
<div
className="e2e-move-div"
onClick={() => handleMove(idx, idx + 1)}
>
<DownIcon />
</div>
<div
className="e2e-move-div e2e-move-close"
onClick={() => handleDelete(idx)}
>
<DeleteIcon />
</div>
<div className="e2e-move-buttons">
<div
className="e2e-move-div"
onClick={() => handleDuplicate(idx)}
>
<AddIcon />
</div>
)}
{e2eForms.length > 1 && (
<Fragment>
<div
className="e2e-move-div"
onClick={() => handleMove(idx, idx - 1)}
>
<UpIcon />
</div>
<div
className="e2e-move-div"
onClick={() => handleMove(idx, idx + 1)}
>
<DownIcon />
</div>
<div
className="e2e-move-div e2e-move-close"
onClick={() => handleDelete(idx)}
>
<DeleteIcon />
</div>
</Fragment>
)}
</div>
<div className="sidebar__section-body-heading">
<div className="sidebar__section-heading">
set test body and headers
Expand Down
10 changes: 2 additions & 8 deletions src/server/playground/comp/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,13 @@ export function Pagination({
{" "}
<input
className="pagination--go-to--input"
style={{
margin: "0",
width: "60px",
border: "1px solid teal",
outline: "none",
}}
min={1}
max={pageCount}
for="1"
type="number"
onChange={handleChange}
placeholder="index"
// value={goTo}
placeholder="number"
value={goTo}
/>
<button
className="pagination--go-to--button"
Expand Down

0 comments on commit 4d7fe29

Please sign in to comment.