Skip to content

Commit e2af4ce

Browse files
committed
fix(search): sizes && offsets
#13
1 parent d636b22 commit e2af4ce

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

src/app/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@import "~tailwindcss/dist/utilities.css";
33
@import "./vars.scss";
44
@import "./normalize.scss";
5+
@import "./utils.scss";
56

67
.gc-app {
78
display: flex;

src/app/utils.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.text-title {
2+
font-family: var(--ff-secondary);
3+
font-size: 20px;
4+
font-weight: var(--fw--medium);
5+
}

src/pages/search/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const SearchPage = () => {
3434

3535
return (
3636
<Row className="page page-search">
37-
<Col span={18}>
37+
<Col span={16}>
3838
<h2 className="toolbar">
3939
Results by <b>{searchQuery}</b> search:
4040
</h2>
@@ -75,7 +75,7 @@ const SearchPage = () => {
7575
{isEmpty && <Empty className="p-8" description="No results found" />}
7676
</div>
7777
</Col>
78-
<Col span={5} className="ml-4">
78+
<Col span={7} className="ml-4">
7979
{/* FIXME: resolve on tabs level */}
8080
<Tabs className="filters flex flex-col">
8181
{/* FIXME: resolve on tabs level */}

src/shared/components/repo/index.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
height: 140px;
66
padding: 22px;
77
margin-top: 22px;
8+
// FIXME: define on app level
9+
font-family: var(--ff-secondary);
10+
font-size: 14px;
811
background-color: var(--clr-gray--100);
912
border-radius: 10px;
1013

@@ -13,16 +16,10 @@
1316
align-content: space-between;
1417

1518
a {
16-
font-family: var(--ff-secondary);
17-
font-size: 20px;
18-
font-weight: var(--fw--medium);
1919
color: var(--clr-text);
2020
}
2121

2222
span {
23-
font-family: var(--ff-secondary);
24-
font-size: 14px;
25-
font-weight: var(--fw--regular);
2623
line-height: 24px;
2724
}
2825
}

src/shared/components/repo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Repo = (props: Props) => {
1818
<div className="repo">
1919
<div className="repo__info">
2020
{/* FIXME: hardcoded, replace to generation by {username}/{reponame} */}
21-
<a href={url?.replace("https://github.com/", "/")}>
21+
<a className="text-title" href={url?.replace("https://github.com/", "/")}>
2222
{owner?.login && `${owner.login}/`}
2323
{name}
2424
</a>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
.user {
2+
// FIXME: define on app level
3+
font-family: var(--ff-secondary);
4+
font-size: 14px;
25
background-color: var(--clr-gray--100);
36
border-radius: 10px;
47
}

src/shared/components/user/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ const User = (props: any) => {
1010
<div className="user__avatar">
1111
<img src={avatarUrl} alt="avatar" width={90} className="rounded-full" />
1212
</div>
13-
<div className="user__details ml-2 flex flex-col flex-grow">
14-
<a className="user__login" href={`/${login}`}>
13+
<div className="user__details ml-4 flex flex-col flex-grow">
14+
<a className="user__login text-title" href={`/${login}`}>
1515
{login}
1616
</a>
1717
<span className="user__bio">{bio}</span>
1818
</div>
19-
<div className="user__actions ml-2">
19+
<div className="user__actions ml-4">
2020
<Button
2121
className="user__action follow"
2222
type={viewerIsFollowing ? "primary" : "default"}

0 commit comments

Comments
 (0)