Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix issue for big comments + better dates format (#101)

Guilherme Oenning04477b18946e
diff --git a/public/components/common/Moment.tsx b/public/components/common/Moment.tsx
index e40f72587..4ffac5b2a 100644
--- a/public/components/common/Moment.tsx
+++ b/public/components/common/Moment.tsx
@@ -12,9 +12,9 @@ export const Moment = (props: MomentText) => {
const m = moment(props.date);
const diff = m.diff(new Date(), 'years');
- const display = (diff !== 0) ? m.format('Do MMM YYYY') : m.fromNow();
+ const display = (diff !== 0) ? m.format('MMMM D, YYYY') : m.fromNow();
- return <span className="date" title={m.format('Do MMM YYYY, hh:mm')}>
+ return <span className="date" title={m.format('MMMM D, YYYY')}>
{ display }
</span>;
};
diff --git a/public/styles/main.scss b/public/styles/main.scss
index b91f0858e..ddabf3dec 100644
--- a/public/styles/main.scss
+++ b/public/styles/main.scss
@@ -64,6 +64,7 @@ code {
.ui.comments {
.comment>.content {
display: inline-block;
+ max-width: 600px;
}
}