Skip to content

Commit

Permalink
Fix the image loader when the thumbnail is a larger image (bioinforma…
Browse files Browse the repository at this point in the history
…tics-ua#514)

Fix the image loader when the thumbnail is a larger image (bioinformatics-ua#514)
  • Loading branch information
bastiao authored Nov 29, 2021
1 parent 7f3799d commit 58e3b7c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ActionCreators } from "../../../actions/searchActions";
import ConfirmModal from "./confirmModal";
import { Endpoints } from "../../../constants/endpoints";
import { DumpStore } from "../../../stores/dumpStore";
import ImageLoader from "react-load-image";
import ImageLoader from "react-imageloader";
import PluginView from "../../plugin/pluginView";
import { DumpActions } from "../../../actions/dumpActions";
import { BootstrapTable, TableHeaderColumn } from "react-bootstrap-table";
Expand Down Expand Up @@ -476,6 +476,7 @@ var PopOverImageViewer = createReactClass({
{url && (
<ImageLoader
src={url}
imgProps={{ className: 'img-responsive' }}
style={{ width: "100%" }}
wrapper={React.DOM.div}
>
Expand Down
3 changes: 1 addition & 2 deletions dicoogle/src/main/resources/webapp/js/external-requires.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const EXTERNAL_MODULES = {
"react-bootstrap": require("react-bootstrap"),
"react-router-bootstrap": require("react-router-bootstrap"),
"react-bootstrap-table": require("react-bootstrap-table"),
"react-load-image": require("react-load-image"),
"react-imageloader": require("react-load-image"),
"react-imageloader": require("react-imageloader"),
"react-dom": require("react-dom")
};

Expand Down
36 changes: 28 additions & 8 deletions dicoogle/src/main/resources/webapp/package-lock.json

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

2 changes: 1 addition & 1 deletion dicoogle/src/main/resources/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"react-bootstrap-table": "^4.3.1",
"react-dom": "^15",
"react-font-awesome": "https://github.com/tkurki/react-font-awesome/tarball/master",
"react-load-image": "^0.1.7",
"react-imageloader": "^3.0.0",
"react-router": "^3.2.5",
"react-router-bootstrap": "^0.20.1",
"react-select": "^v1.2.0",
Expand Down

0 comments on commit 58e3b7c

Please sign in to comment.