mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
Add a small button for downloading ics attachments to the event preview #1547
This commit is contained in:
parent
9d1b8fe600
commit
3ab9b0edf1
2 changed files with 13 additions and 0 deletions
|
@ -129,6 +129,9 @@ export class EventHeader extends React.Component<EventHeaderProps, EventHeaderSt
|
|||
return (
|
||||
<div className="event-wrapper">
|
||||
<div className="event-header">
|
||||
<div className="event-download" onClick={() => Actions.fetchAndOpenFile(this.props.file)}>
|
||||
<RetinaImg name="icon-attachment-download.png" mode={RetinaImg.Mode.ContentIsMask} />
|
||||
</div>
|
||||
<RetinaImg name="icon-RSVP-calendar-mini@2x.png" mode={RetinaImg.Mode.ContentPreserve} />
|
||||
<span className="event-title-text">{localized('Event')}: </span>
|
||||
<span className="event-title">{icsEvent.summary}</span>
|
||||
|
|
|
@ -31,6 +31,16 @@
|
|||
.event-title {
|
||||
color: @text-color;
|
||||
}
|
||||
.event-download {
|
||||
float: right;
|
||||
border-radius: @border-radius-base;
|
||||
border: 1px solid @border-color-divider;
|
||||
padding: 0px 4px;
|
||||
img {
|
||||
background: @text-color-very-subtle;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.event-body {
|
||||
|
|
Loading…
Reference in a new issue