Skip to content

Commit

Permalink
feat(style): improve display of beer image
Browse files Browse the repository at this point in the history
  • Loading branch information
luhmann committed Mar 18, 2018
1 parent fa675c8 commit cdeef05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Beer.re
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ let make =
| None => ReasonReact.nullElement
| Some(i_) =>
<div
className="bg-contain bg-center flex-grow bg-no-repeat h-48 sm:h-auto beerImg-width"
className="bg-contain bg-top flex-grow bg-no-repeat h-48 sm:h-auto beerImg-width"
style=(ReactDOMRe.Style.make(~backgroundImage={j|url($i_)|j}, ()))
/>
};
<div
className="shadow-lg rounded mb-4 overflow-hidden max-w-md p-3 sm:flex test-beer-card">
imageItem
<div className="p-4">
<div className="pb-4 pr-4 pl-4 pt-4 sm:pt-0">
<h2
className="font-black tracking-wide leading-tight test-beer-card-name">
(ReasonReact.stringToElement(name))
Expand Down
4 changes: 2 additions & 2 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
*/

.beerImg-width {
min-width: 8rem;
min-width: 10rem;
}

.spinner {
Expand All @@ -69,7 +69,7 @@
.spinner > div {
width: 18px;
height: 18px;
background-color: config("colors.grey");
background-color: config('colors.grey');

border-radius: 100%;
display: inline-block;
Expand Down

0 comments on commit cdeef05

Please sign in to comment.