Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

change icon and fix name display (#98)

Guilherme Oenning07d1feee76a0
diff --git a/public/components/ShowIdeaResponse.tsx b/public/components/ShowIdeaResponse.tsx
index d94a8e943..aeed87cbd 100644
--- a/public/components/ShowIdeaResponse.tsx
+++ b/public/components/ShowIdeaResponse.tsx
@@ -13,10 +13,10 @@ export const ShowIdeaResponse = (props: IdeaResponseProps): JSX.Element => {
if (props.response && status.show) {
return <div className="fdr-response item ui raised segment">
<span className={`ui ribbon label ${status.color}`}>{ status.title }</span>
- <div className="info">
- <Gravatar name={props.response.user.name} hash={props.response.user.gravatar}/> <u>{props.response.user.name}</u>
- <Moment date={props.response.respondedOn} />
- </div>
+ <Gravatar name={props.response.user.name} hash={props.response.user.gravatar}/> { props.response.user.name }
+ <span className="info">
+ <Moment date={props.response.respondedOn} />
+ </span>
<div className="content">
<MultiLineText text={ props.response.text } markdown={true} />
</div>
diff --git a/public/components/SupportCounter.tsx b/public/components/SupportCounter.tsx
index 94d61b792..fe4b021c6 100644
--- a/public/components/SupportCounter.tsx
+++ b/public/components/SupportCounter.tsx
@@ -74,13 +74,13 @@ export class SupportCounter extends React.Component<SupportCounterProps, Support
const vote = <button ref={(e) => { this.elem = e!; } }
className={`ui button ${noTouch ? 'no-touch' : ''} ${this.state.supported ? 'supported' : ''} `}
onClick={async () => await this.supportOrUndo()}>
+ <i className="medium caret up icon"></i>
{ this.state.total }
- <i className="medium thumbs up icon"></i>
</button>;
const disabled = <div className="ui button disabled">
+ <i className="medium caret up icon"></i>
{ this.state.total }
- <i className="medium thumbs up icon"></i>
</div>;
return <div>
diff --git a/public/components/common/Gravatar.tsx b/public/components/common/Gravatar.tsx
index 770f1132d..1a9b11518 100644
--- a/public/components/common/Gravatar.tsx
+++ b/public/components/common/Gravatar.tsx
@@ -17,6 +17,7 @@ export const Gravatar = (props: GravatarProps) => {
<img ref={(e) => element = e }
onError={() => { element.src = fallback; }}
className="ui avatar image"
+ title={props.name}
src={ `https://www.gravatar.com/avatar/${hash}?d=${encodeURIComponent(fallback)}` }/> :
<div />;
};
diff --git a/public/pages/home/SiteHomePage.scss b/public/pages/home/SiteHomePage.scss
index 4d906982d..da6dcb09f 100644
--- a/public/pages/home/SiteHomePage.scss
+++ b/public/pages/home/SiteHomePage.scss
@@ -13,7 +13,8 @@
> .item > .content {
.description {
- min-height: 40px;
+ min-height: 20px;
+ margin-bottom: 10px;
}
}
}
@@ -29,20 +30,4 @@
font-weight: bold;
margin: 10px 0px;
}
-
- .idea-title {
- color: rgb(162, 145, 251);
- cursor: pointer;
- max-width: 80%;
- border-bottom: 2px dotted rgb(162, 145, 251);
- display: inline-block;
- padding-right: 9px;
- padding-left: 10px;
- text-align: left;
- font-size: 20px;
- text-decoration: none;
- line-height: 30px;
- list-style: none;
- margin-bottom: 20px;
- }
}
\ No newline at end of file
diff --git a/public/styles/main.scss b/public/styles/main.scss
index b5fe83d1c..141d287c0 100644
--- a/public/styles/main.scss
+++ b/public/styles/main.scss
@@ -66,7 +66,7 @@ code {
.button,
.button.disabled {
margin: 0 auto !important;
- padding: 0.5rem 1rem !important;
+ padding: 0rem 1rem 0.5rem 1rem !important;
background-color: #fff !important;
box-shadow: 0 0 0 1px rgba(34,36,38,.15) inset !important;
}