mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-15 03:15:32 +00:00
Merge remote-tracking branch 'origin/master' into gs-master
This commit is contained in:
commit
4f01e6e8d5
|
@ -68,7 +68,7 @@ export default class Upload extends ImmutablePureComponent {
|
||||||
<div className='compose-form__upload' onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave}>
|
<div className='compose-form__upload' onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave}>
|
||||||
<Motion defaultStyle={{ scale: 0.8 }} style={{ scale: spring(1, { stiffness: 180, damping: 12 }) }}>
|
<Motion defaultStyle={{ scale: 0.8 }} style={{ scale: spring(1, { stiffness: 180, damping: 12 }) }}>
|
||||||
{({ scale }) => (
|
{({ scale }) => (
|
||||||
<div className='compose-form__upload-thumbnail' style={{ transform: `translateZ(0) scale(${scale})`, backgroundImage: `url(${media.get('preview_url')})` }}>
|
<div className='compose-form__upload-thumbnail' style={{ transform: `scale(${scale})`, backgroundImage: `url(${media.get('preview_url')})` }}>
|
||||||
<IconButton icon='times' title={intl.formatMessage(messages.undo)} size={36} onClick={this.handleUndoClick} />
|
<IconButton icon='times' title={intl.formatMessage(messages.undo)} size={36} onClick={this.handleUndoClick} />
|
||||||
|
|
||||||
<div className={classNames('compose-form__upload-description', { active })}>
|
<div className={classNames('compose-form__upload-description', { active })}>
|
||||||
|
|
|
@ -47,7 +47,7 @@ class SensitiveButton extends React.PureComponent {
|
||||||
'compose-form__sensitive-button--visible': visible,
|
'compose-form__sensitive-button--visible': visible,
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<div className={className} style={{ transform: `translateZ(0) scale(${scale})` }}>
|
<div className={className} style={{ transform: `scale(${scale})` }}>
|
||||||
<IconButton
|
<IconButton
|
||||||
className='compose-form__sensitive-button__icon'
|
className='compose-form__sensitive-button__icon'
|
||||||
title={intl.formatMessage(messages.title)}
|
title={intl.formatMessage(messages.title)}
|
||||||
|
|
|
@ -40,7 +40,7 @@ export default class UploadArea extends React.PureComponent {
|
||||||
{({ backgroundOpacity, backgroundScale }) =>
|
{({ backgroundOpacity, backgroundScale }) =>
|
||||||
<div className='upload-area' style={{ visibility: active ? 'visible' : 'hidden', opacity: backgroundOpacity }}>
|
<div className='upload-area' style={{ visibility: active ? 'visible' : 'hidden', opacity: backgroundOpacity }}>
|
||||||
<div className='upload-area__drop'>
|
<div className='upload-area__drop'>
|
||||||
<div className='upload-area__background' style={{ transform: `translateZ(0) scale(${backgroundScale})` }} />
|
<div className='upload-area__background' style={{ transform: `scale(${backgroundScale})` }} />
|
||||||
<div className='upload-area__content'><FormattedMessage id='upload_area.title' defaultMessage='Drag & drop to upload' /></div>
|
<div className='upload-area__content'><FormattedMessage id='upload_area.title' defaultMessage='Drag & drop to upload' /></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -159,11 +159,11 @@
|
||||||
"privacy.public.short": "Publiczny",
|
"privacy.public.short": "Publiczny",
|
||||||
"privacy.unlisted.long": "Niewidoczny na publicznych osiach czasu",
|
"privacy.unlisted.long": "Niewidoczny na publicznych osiach czasu",
|
||||||
"privacy.unlisted.short": "Niewidoczny",
|
"privacy.unlisted.short": "Niewidoczny",
|
||||||
"relative_time.days": "{number}d",
|
"relative_time.days": "{number} dni",
|
||||||
"relative_time.hours": "{number}h",
|
"relative_time.hours": "{number} godz.",
|
||||||
"relative_time.just_now": "now",
|
"relative_time.just_now": "teraz",
|
||||||
"relative_time.minutes": "{number}m",
|
"relative_time.minutes": "{number} min.",
|
||||||
"relative_time.seconds": "{number}s",
|
"relative_time.seconds": "{number} s.",
|
||||||
"reply_indicator.cancel": "Anuluj",
|
"reply_indicator.cancel": "Anuluj",
|
||||||
"report.placeholder": "Dodatkowe komentarze",
|
"report.placeholder": "Dodatkowe komentarze",
|
||||||
"report.submit": "Wyślij",
|
"report.submit": "Wyślij",
|
||||||
|
|
|
@ -3402,21 +3402,21 @@ button.icon-button.active i.fa-retweet {
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-search {
|
.fa-search {
|
||||||
transform: translateZ(0) rotate(90deg);
|
transform: rotate(90deg);
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transform: translateZ(0) rotate(0deg);
|
transform: rotate(0deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-times-circle {
|
.fa-times-circle {
|
||||||
top: 11px;
|
top: 11px;
|
||||||
transform: translateZ(0) rotate(0deg);
|
transform: rotate(0deg);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
transform: translateZ(0) rotate(90deg);
|
transform: rotate(90deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
17
package.json
17
package.json
|
@ -135,22 +135,5 @@
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"fsevents": "*"
|
"fsevents": "*"
|
||||||
},
|
|
||||||
"jest": {
|
|
||||||
"projects": [
|
|
||||||
"<rootDir>/app/javascript/mastodon"
|
|
||||||
],
|
|
||||||
"testPathIgnorePatterns": [
|
|
||||||
"<rootDir>/node_modules/",
|
|
||||||
"<rootDir>/vendor/",
|
|
||||||
"<rootDir>/config/",
|
|
||||||
"<rootDir>/log/",
|
|
||||||
"<rootDir>/public/",
|
|
||||||
"<rootDir>/tmp/"
|
|
||||||
],
|
|
||||||
"setupFiles": [
|
|
||||||
"raf/polyfill"
|
|
||||||
],
|
|
||||||
"setupTestFrameworkScriptFile": "<rootDir>/app/javascript/mastodon/test_setup.js"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue