Skip to content

Commit

Permalink
fix: footer windows truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
debbygigigi authored and ShizukuIchi committed Apr 3, 2019
1 parent c4bed0b commit 029866a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/WinXP/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function Footer({
className="footer__start"
onMouseDown={toggleMenu}
/>
{[...apps]
<div className="footer__window__items">
{[...apps]
.sort((a, b) => a.id - b.id)
.map(app => (
<FooterWindow
Expand All @@ -85,6 +86,7 @@ function Footer({
isFocus={focusedAppId === app.id}
/>
))}
</div>
</div>

<div className="footer__items right">
Expand Down Expand Up @@ -190,6 +192,12 @@ const Container = styled.footer`
box-shadow: 2px 4px 2px rgba(0, 0, 0, 0.5);
bottom: 100%;
}
.footer__window__items {
display: inline-flex;
margin-right: 10px;
width: 0;
flex: 1;
}
.footer__window {
flex: 1;
max-width: 150px;
Expand Down

1 comment on commit 029866a

@vercel
Copy link

@vercel vercel bot commented on 029866a Apr 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.