Skip to content

Commit fe1b986

Browse files
author
Vitaly
authored
Merge pull request hexlet-codebattle#1059 from glebmanov/modify_profile_page
fix achievements and joined at
2 parents f0151ab + df0a8f1 commit fe1b986

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

services/app/assets/css/style.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ a {
258258
padding: 5px;
259259
}
260260
.cb-profile .cb-polyglot {
261-
width: 200px;
262-
height: 200px;
263-
padding: 12px;
261+
width: 50px;
262+
height: 50px;
263+
padding: 2px;
264264
}
265265

266266
.cb-user-avatar {

services/app/assets/js/widgets/containers/UserProfile.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ const UserProfile = () => {
4343
const langs = achievement.split('?').pop().split('_');
4444

4545
return (
46-
<div className="cb-polyglot" title={achievement}>
46+
<div className="cb-polyglot mr-1 mb-1" title={achievement}>
4747
<div className="d-flex h-75 flex-wrap align-items-center justify-content-around">
4848
{langs.map(lang => (
4949
<img
5050
src={`/assets/images/achievements/${lang}.png`}
5151
alt={lang}
5252
title={lang}
53-
width="38"
54-
height="38"
53+
width="10"
54+
height="10"
5555
key={lang}
5656
/>
5757
))}
@@ -61,7 +61,7 @@ const UserProfile = () => {
6161
}
6262
return (
6363
<img
64-
className="mr-1"
64+
className="mr-1 mb-1"
6565
src={`/assets/images/achievements/${achievement}.png`}
6666
alt={achievement}
6767
title={achievement}
@@ -192,7 +192,7 @@ const UserProfile = () => {
192192
<h3 className="my-2">{`Lang: ${stats.user.lang}`}</h3>
193193
<hr />
194194
<p className="small text-monospace text-muted mb-2">
195-
{'inserted at '}
195+
{'joined at '}
196196
{dateParse(stats.user.insertedAt)}
197197
</p>
198198
<h1 className="my-2">
@@ -210,7 +210,7 @@ const UserProfile = () => {
210210
<>
211211
<hr className="mt-2" />
212212
<h5 className="text-break">Achievements</h5>
213-
<div className="col d-flex justify-content-start cb-profile mt-3 pl-0">
213+
<div className="col d-flex flex-wrap justify-content-start cb-profile mt-3 pl-0">
214214
{stats.user.achievements.map(achievement => (
215215
<div key={achievement}>{renderAchievemnt(achievement)}</div>
216216
))}

0 commit comments

Comments
 (0)