Skip to content

Commit 3ccc80c

Browse files
authored
fix: search result panel positioning (hasura#14)
* search result fix * twitter icon style change
1 parent 1ba8722 commit 3ccc80c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const Header = ({location}) => (
110110
{tweetText !== '' ?
111111
(<li>
112112
<a href={'https://twitter.com/intent/tweet?&text=' + tweetText} target="_blank">
113-
<img className={'twitterIcon'} src={twitter} alt={'Twitter'} />
113+
<img className={'shareIcon'} src={twitter} alt={'Twitter'} />
114114
</a>
115115
</li>) : null
116116
}

src/components/styles.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ body {
100100
padding-right: 20px;
101101
flex: 1;
102102
max-width: 600px;
103+
position: relative;
103104
}
104105
.searchWrapper a {
105106
font-weight: 500;
@@ -111,12 +112,13 @@ body {
111112
border-radius: 4px;
112113
position: absolute;
113114
max-width: 600px;
114-
top: 70px;
115+
top: 40px;
115116
border: 1px solid #ccc;
116117
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.16);
117118
height: auto;
118119
max-height: 80vh;
119120
overflow: scroll;
121+
left: 0;
120122
}
121123
.showResults {
122124
display: block;
@@ -206,7 +208,7 @@ body {
206208
display: flex;
207209
align-items: center;
208210
}
209-
.navBarUL li a img
211+
.navBarUL li a img, .navBarUL li a .shareIcon
210212
{
211213
width: 20px;
212214
}

0 commit comments

Comments
 (0)