Skip to content

Commit

Permalink
Clean up the osc log
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Boberg <[email protected]>
  • Loading branch information
axelboberg committed Apr 25, 2024
1 parent 65f7aa4 commit abd7c30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/osc/app/components/LogItem/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const LogItem = ({ item = {} }) => {
return (
<div className='LogItem' data-direction={item?.direction}>
<div className='LogItem-timestamp'>{formatTime(item?.timestamp)}</div>
<div className='LogItem-direction'>| {item?.direction === 'in' ? '>>' : '<<'}</div>
<div className='LogItem-direction'>{item?.direction === 'in' ? '>' : '<'}</div>
<div className='LogItem-address'>{item?.address}</div>
</div>
)
Expand Down
10 changes: 9 additions & 1 deletion plugins/osc/app/components/LogItem/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@

.LogItem > div {
margin-left: 10px;

text-overflow: ellipsis;
overflow: hidden;
}

.LogItem-timestamp {
width: 100px;
width: 90px;
flex-shrink: 0;
}

.LogItem-direction {
flex-shrink: 0;
}

.LogItem:nth-child(odd) {
Expand Down

0 comments on commit abd7c30

Please sign in to comment.