Skip to content

Commit

Permalink
Update custom formats style
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Feb 20, 2017
1 parent ce7b56b commit a9c601b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,16 @@ export class DateTimeFormatOptions extends Component {
type="text"
value={ dateFormat || '' }
/>
<span className="date-time-format__custom-preview">
<FormSettingExplanation>
{ isCustomFormat && dateFormat
? today.format( phpToMomentDatetimeFormat( dateFormat ) )
? translate( 'Preview: %s', {
args: today.format( phpToMomentDatetimeFormat( dateFormat ) ),
comment: 'Date/time format preview'
} )
: ''
}
</span>
</span>
</FormSettingExplanation>
</span>
</FormLabel>
</FormFieldset>
);
Expand Down Expand Up @@ -199,12 +202,15 @@ export class DateTimeFormatOptions extends Component {
type="text"
value={ timeFormat || '' }
/>
<span className="date-time-format__custom-preview">
<FormSettingExplanation>
{ isCustomFormat && timeFormat
? today.format( phpToMomentDatetimeFormat( timeFormat ) )
? translate( 'Preview: %s', {
args: today.format( phpToMomentDatetimeFormat( timeFormat ) ),
comment: 'Date/time format preview'
} )
: ''
}
</span>
</FormSettingExplanation>
</span>
<FormSettingExplanation>
<ExternalLink
Expand Down
4 changes: 0 additions & 4 deletions client/my-sites/site-settings/date-time-format/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@
margin: 0 12px;
width: 100px;
}

.date-time-format__custom-preview {
white-space: nowrap;
}
}

0 comments on commit a9c601b

Please sign in to comment.