fix: note icons getting pushed by extra-long words (#835)
This commit is contained in:
@@ -93,8 +93,8 @@ export const NotesListItem: FunctionComponent<Props> = ({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className={`meta ${hideEditorIcon ? 'icon-hidden' : ''}`}>
|
<div className={`meta ${hideEditorIcon ? 'icon-hidden' : ''}`}>
|
||||||
<div className="name">
|
<div className="name-container">
|
||||||
<div>{note.title}</div>
|
<div className="name">{note.title}</div>
|
||||||
<div className="flag-icons">
|
<div className="flag-icons">
|
||||||
{note.locked && (
|
{note.locked && (
|
||||||
<span title="Editing Disabled">
|
<span title="Editing Disabled">
|
||||||
|
|||||||
@@ -134,18 +134,24 @@
|
|||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
word-break: break-all;
|
||||||
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flag-icons {
|
.flag-icons {
|
||||||
|
padding: .135rem 0;
|
||||||
|
|
||||||
&,
|
&,
|
||||||
& > * {
|
& > * {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user