mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +08:00
change styles to center injected thread icons on rows
This commit is contained in:
parent
cb165bc91b
commit
48bf2183ed
2 changed files with 9 additions and 5 deletions
|
@ -70,15 +70,16 @@ class ThreadList extends React.Component
|
||||||
c1 = new ListTabular.Column
|
c1 = new ListTabular.Column
|
||||||
name: "★"
|
name: "★"
|
||||||
resolver: (thread) =>
|
resolver: (thread) =>
|
||||||
<span>
|
[
|
||||||
<ThreadListIcon thread={thread} />
|
<ThreadListIcon thread={thread} />
|
||||||
<MailImportantIcon thread={thread} />
|
<MailImportantIcon thread={thread} />
|
||||||
<InjectedComponentSet
|
<InjectedComponentSet
|
||||||
inline={true}
|
inline={true}
|
||||||
containersRequired={false}
|
containersRequired={false}
|
||||||
matching={role: "ThreadListIcon"}
|
matching={role: "ThreadListIcon"}
|
||||||
|
className="thread-injected-icons"
|
||||||
exposedProps={thread: thread}/>
|
exposedProps={thread: thread}/>
|
||||||
</span>
|
]
|
||||||
|
|
||||||
c2 = new ListTabular.Column
|
c2 = new ListTabular.Column
|
||||||
name: "Participants"
|
name: "Participants"
|
||||||
|
|
|
@ -163,14 +163,17 @@
|
||||||
.inverseContent;
|
.inverseContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.thread-injected-icons {
|
||||||
|
vertical-align: top;
|
||||||
|
line-height: 26px;
|
||||||
|
}
|
||||||
.thread-icon {
|
.thread-icon {
|
||||||
width:15px;
|
width:26px;
|
||||||
height:15px;
|
height:26px;
|
||||||
background-size: 15px;
|
background-size: 15px;
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position:center;
|
background-position:center;
|
||||||
padding:12px;
|
|
||||||
|
|
||||||
&.thread-icon-attachment {
|
&.thread-icon-attachment {
|
||||||
background-image:url(../static/images/thread-list/icon-attachment-@2x.png);
|
background-image:url(../static/images/thread-list/icon-attachment-@2x.png);
|
||||||
|
|
Loading…
Reference in a new issue