Skip to content

Commit

Permalink
Revert "reduced scrubber modal padding"
Browse files Browse the repository at this point in the history
This reverts commit 474447b.
  • Loading branch information
garris committed Jan 28, 2018
1 parent f558321 commit b1646a6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 27 deletions.
28 changes: 10 additions & 18 deletions compare/output/index_bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -27385,9 +27385,9 @@ Object.defineProperty(exports, "__esModule", {
function getPosFromImgId(imgId) {
switch (imgId) {
case 'refImage':
return 100;
return 110;
case 'testImage':
return 0;
return -10;
default:
return 50;
}
Expand Down Expand Up @@ -31694,7 +31694,7 @@ Object.defineProperty(exports, "__esModule", {
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _templateObject = _taggedTemplateLiteral(['\n display: block;\n'], ['\n display: block;\n']),
_templateObject2 = _taggedTemplateLiteral(['\n position: absolute;\n right: 10px;\n top: 10px;\n width: 20px;\n height: 20px;\n background-image: url(', ');\n background-size: 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n cursor: pointer;\n }\n'], ['\n position: absolute;\n right: 10px;\n top: 10px;\n width: 20px;\n height: 20px;\n background-image: url(', ');\n background-size: 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n cursor: pointer;\n }\n']),
_templateObject2 = _taggedTemplateLiteral(['\n position: absolute;\n right: 60px;\n top: 35px;\n width: 30px;\n height: 30px;\n background-image: url(', ');\n background-size: 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n cursor: pointer;\n }\n'], ['\n position: absolute;\n right: 60px;\n top: 35px;\n width: 30px;\n height: 30px;\n background-image: url(', ');\n background-size: 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n cursor: pointer;\n }\n']),
_templateObject3 = _taggedTemplateLiteral(['\n display: block;\n margin: 0 auto;\n border: none;\n border-radius: 3px;\n background-color: ', ';\n text-align: center;\n padding: 12px 40px;\n color: ', ';\n font-size: 16px;\n\n &:hover {\n cursor: pointer;\n }\n\n &:focus {\n outline: none;\n }\n'], ['\n display: block;\n margin: 0 auto;\n border: none;\n border-radius: 3px;\n background-color: ', ';\n text-align: center;\n padding: 12px 40px;\n color: ', ';\n font-size: 16px;\n\n &:hover {\n cursor: pointer;\n }\n\n &:focus {\n outline: none;\n }\n']);

var _react = __webpack_require__(3);
Expand Down Expand Up @@ -31761,9 +31761,7 @@ var customStyles = {
left: '0',
border: 'none',
borderRadius: 'none',
// padding: '25px 60px',
padding: '0',
overflow: 'hidden',
padding: '25px 60px',
boxSizing: 'border-box'
}
};
Expand Down Expand Up @@ -32934,29 +32932,23 @@ function ImageScrubber(_ref) {
null,
_react2.default.createElement(
ScrubberViewBtn,
{
onClick: function onClick() {
{ onClick: function onClick() {
showScrubberRefImage();
}
},
} },
'REFERENCE'
),
_react2.default.createElement(
ScrubberViewBtn,
{
onClick: function onClick() {
{ onClick: function onClick() {
showScrubberTestImage();
}
},
} },
'TEST'
),
_react2.default.createElement(
ScrubberViewBtn,
{
onClick: function onClick() {
{ onClick: function onClick() {
showScrubber();
}
},
} },
'SCRUBBER'
)
),
Expand Down
12 changes: 5 additions & 7 deletions compare/src/components/ecosystems/ScrubberModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const Wrapper = styled.div`

const ButtonClose = styled.button`
position: absolute;
right: 10px;
top: 10px;
width: 20px;
height: 20px;
right: 60px;
top: 35px;
width: 30px;
height: 30px;
background-image: url(${iconClose});
background-size: 100%;
background-repeat: no-repeat;
Expand Down Expand Up @@ -72,9 +72,7 @@ const customStyles = {
left: '0',
border: 'none',
borderRadius: 'none',
// padding: '25px 60px',
padding: '0',
overflow: 'hidden',
padding: '25px 60px',
boxSizing: 'border-box'
}
}
Expand Down
5 changes: 3 additions & 2 deletions compare/src/reducers/scrubber.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function getPosFromImgId(imgId) {
switch (imgId) {
case 'refImage':
return 100
return 110
case 'testImage':
return 0
return -10
default:
return 50
}
Expand All @@ -12,6 +12,7 @@ function getPosFromImgId(imgId) {
const scrubber = (state = {}, action) => {
switch (action.type) {
case 'OPEN_SCRUBBER_MODAL':
console.log('>>>', action)
let targetImgId = ''
try {
targetImgId = action.value.targetImg.id
Expand Down

0 comments on commit b1646a6

Please sign in to comment.