Skip to content

Commit

Permalink
*update - Inspect UI
Browse files Browse the repository at this point in the history
  • Loading branch information
yokiijay committed Nov 5, 2020
1 parent 0df8933 commit b134832
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 15 deletions.
3 changes: 2 additions & 1 deletion dist/index.es.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/index.es.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/index.js.map

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions src/components/Inspect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@ const Inspect: React.FC = () => {
position: 'absolute',
width: '100%',
height: '100%',
boxShadow: '0 0 0 1px rgba(255, 0, 255, 0.6)',
background: 'rgba(255, 0, 255, 0.08)',
boxShadow: '0 0 0 1px orangered',
borderRadius: 2,
top: 0,
left: 0,
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
color: 'transparent',
textShadow: '0 2px 5px rgba(0,0,0,.4)',
// textShadow: '0 2px 5px rgba(0,0,0,.4)',
fontSize: 12,
transition: '.4s',
zIndex: 9999
}} ref={ref} css={css`
&:hover {
background: rgba(255, 105, 180, .6) !important;
color: white !important;
backdrop-filter: blur(4px);
}
`}>
{info.width} x {info.height}
}} ref={ref}>
<div className="inspect-info" style={{
color: 'white',
background: 'red',
padding: 8,
borderRadius: 4,
}}>
{info.width} x {info.height}
</div>
</div>
)
}
Expand Down
7 changes: 6 additions & 1 deletion todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@
17. zIndex
18. fixbug - Box width={1} becomes width='100%'
19. fixbug - Avatar random not working
20. feature - 多行溢出
20. feature - 多行溢出
21. feature - Box hide scroll bar
22. fixbug - Box size with minWidth
23. feature - Box zoom style prop
24. update - Inspect ui ✅
25. fixbug - Name Media component to Meta

0 comments on commit b134832

Please sign in to comment.