Skip to content

Commit 39138b3

Browse files
committed
responsive log items
1 parent d490c6c commit 39138b3

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

ethernet-view/src/pages/LoggerPage/LogsColumn/LogLoader/LogList/LogItem/LogItem.module.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@
22

33
.logItemWrapper {
44
display: flex;
5+
justify-content: center;
56
align-items: center;
67
gap: .8rem;
7-
width: fit-content;
8+
width: 100%;
89

910
&:hover {
1011
cursor: pointer;
1112
}
1213
}
1314

1415
.icon {
15-
width: 1.6rem;
16-
1716
img {
18-
width: 100%;
17+
width: 1.6rem;
1918
}
2019
}
2120

@@ -24,6 +23,9 @@
2423
font-size: 1.6rem;
2524
font-family: styles.$code-font;
2625
font-style: italic;
26+
white-space: nowrap;
27+
text-overflow: ellipsis;
28+
overflow: hidden;
2729
}
2830

2931
.active {

ethernet-view/src/pages/LoggerPage/LogsColumn/LogLoader/LogList/LogItem/LogItem.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ export const LogItem = ({logName}: Props) => {
1919
<img src={`${isOpen ? folderOpen : folderClosed}`} alt="log-icon" />
2020
</div>
2121
<div className={`${styles.title} ${isOpen ? styles.active : ""}`}>
22-
<p>
23-
{logName}
24-
</p>
22+
{logName}
2523
</div>
2624
</div>
2725
)

0 commit comments

Comments
 (0)