Skip to content

Commit

Permalink
fix up student picker list when the name is really long
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkrives committed Oct 7, 2018
1 parent e72b3df commit 05fd78e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/gob-web/modules/student-picker/student-list-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ const DeleteButton = styled(FlatButton)`
const GoIcon = styled(Icon)`
margin-left: 1em;
margin-right: 0.5em;
flex-shrink: 0;
`

const StudentName = styled.div`
line-height: 1.5;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
`

const StudentAreas = styled.div`
Expand All @@ -69,6 +73,7 @@ const AreaName = styled.span`
const StudentInfo = styled.span`
flex: 1;
margin-left: 0.5em;
max-width: 90%;
`

const ListItemLink = styled(Link)`
Expand All @@ -81,6 +86,7 @@ const ListItemLink = styled(Link)`
flex: 1;
display: flex;
align-items: center;
width: 100%;
padding: 0.75em 0.5em;
position: relative;
Expand Down

0 comments on commit 05fd78e

Please sign in to comment.