Skip to content

Commit

Permalink
Removing default debug search. Fixing mobile layouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
njt1982 committed Mar 20, 2019
1 parent f589831 commit 502b7ac
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _handlebar_templates/recipe_card.handlebars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="col-sm-4 mb-3">
<div class="col-6 col-md-4 mb-3">
<div class="card recipe">
<div class="card-header d-flex justify-content-between align-items-center">
{{#if result.texture}}
Expand All @@ -22,7 +22,7 @@
{{/if}}

{{#if inShape}}
<table class="in-shape table table-bordered w-auto mx-auto">
<table class="in-shape table table-bordered w-auto mx-auto mb-0">
{{#each inShape}}
<tr class="in-shape-row">
{{#each this}}
Expand Down
9 changes: 7 additions & 2 deletions _sass/_custom.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
img.mc-item {
width: 32px;
height: 32px;
width: 16px;
height: 16px;

@include media-breakpoint-up(sm) {
width: 32px;
height: 32px;
}
image-rendering: pixelated;
cursor: pointer;
}
Expand Down
3 changes: 3 additions & 0 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@
return acc;
}, {});

/*
// Enable this for debugging on-load
$searchBox.val('iron ingot').trigger('keyup');
setTimeout(function() {
$('button', searchResult).first().click();
}, 200);
*/
});

var getItem = function(item) {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/templates.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 502b7ac

Please sign in to comment.