Skip to content

Commit 5c7278b

Browse files
committed
Improve style
1 parent ee66abc commit 5c7278b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.1.58",
3+
"version": "0.1.59",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/Modals/Modal.styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ export const StyledModalEntryList = styled.div<StyledModalEntryListProps>`
371371
}
372372
`;
373373

374+
export const StyledModalActionEntry = styled(StyledModalEntryList)`
375+
display: contents;
376+
`;
377+
374378
interface StyledModelDropAreaProps {
375379
text?: string;
376380
bgColor?: string;

src/components/Modals/Modal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useRef, useEffect, useState, ReactNode } from "react";
22
import {
33
StyledModal,
4+
StyledModalActionEntry,
45
StyledModalBackButton,
56
StyledModalButtonRow,
67
StyledModalCloseButton,
@@ -346,7 +347,7 @@ export const ModalActionList = ({
346347
<label>{entry.name}</label>
347348
</StyledModalEntryList>
348349
{isOpen === entry.name && (
349-
<StyledModalEntryList
350+
<StyledModalActionEntry
350351
color={theme.palette.text}
351352
entryColor={theme.palette.background}
352353
hoverColor={theme.palette.secondary}
@@ -355,7 +356,7 @@ export const ModalActionList = ({
355356
id={"list-open-" + entry.name}
356357
>
357358
{entry.component}
358-
</StyledModalEntryList>
359+
</StyledModalActionEntry>
359360
)}
360361
</>
361362
);

0 commit comments

Comments
 (0)