Skip to content

Commit

Permalink
fix: note icons getting pushed by extra-long words (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara authored Jan 31, 2022
1 parent 46ee84c commit 0e00901
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/components/NotesListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export const NotesListItem: FunctionComponent<Props> = ({
</div>
)}
<div className={`meta ${hideEditorIcon ? 'icon-hidden' : ''}`}>
<div className="name">
<div>{note.title}</div>
<div className="name-container">
<div className="name">{note.title}</div>
<div className="flag-icons">
{note.locked && (
<span title="Editing Disabled">
Expand Down
12 changes: 9 additions & 3 deletions app/assets/stylesheets/_notes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,24 @@
padding-left: 1rem;
}

.name {
.name-container {
display: flex;
align-items: center;
align-items: flex-start;
justify-content: space-between;
font-weight: 600;
font-size: 1rem;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
}

.name {
word-break: break-all;
margin-right: 0.5rem;
}

.flag-icons {
padding: .135rem 0;

&,
& > * {
display: flex;
Expand Down

0 comments on commit 0e00901

Please sign in to comment.