Skip to content

Commit

Permalink
Merge pull request #154 from ZorrillosDev/fix--search
Browse files Browse the repository at this point in the history
fix: search
  • Loading branch information
geolffreym authored Jun 24, 2022
2 parents 9b5ec9e + 8a910a5 commit 60bbf16
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "watchit",
"author": "ZorrillosDev",
"version": "0.3.3-alpha.3",
"version": "0.3.4-alpha.1",
"private": true,
"main": "./src/main/index.js",
"description": "Open movies everywhere",
Expand Down Expand Up @@ -79,7 +79,8 @@
"package.json"
],
"dmg": {
"contents": [
"contents":
[
{
"x": 130,
"y": 220
Expand Down
7 changes: 5 additions & 2 deletions src/render/core/app/components/Search/result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react'
import PointsLoader from '@components/PointsLoader'
import CustomScrollbars from '@components/Scroller'
import styled from 'styled-components'

import SearchResultItem from './item'
import gatewayHelper from '@helpers/gateway'

const ResultsWrapper = styled.div`
width: 100%;
Expand Down Expand Up @@ -73,8 +73,11 @@ const SearchResult = (props) => {
props.result.map((i) => {
return (
<SearchResultItem
key={i._id} {...Object.assign(i, { image: i.resource.posters.small })}
key={i._id}
onClick={props.onClick}
{...Object.assign(i, {
image: gatewayHelper.parsePosterUri(i.resource, 'small')
})}
/>
)
})
Expand Down
1 change: 0 additions & 1 deletion src/render/css/tools/_images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

.image-container {
@include mixins.clearfix;
width: 100%;
height: auto;
display: inline-block;
flex-shrink: 0;
Expand Down

0 comments on commit 60bbf16

Please sign in to comment.