diff --git a/octoprint_prettygcode/__init__.py b/octoprint_prettygcode/__init__.py index f9c324f..fa43ce0 100644 --- a/octoprint_prettygcode/__init__.py +++ b/octoprint_prettygcode/__init__.py @@ -38,9 +38,12 @@ def get_update_information(self): # ("OctoPrint-PluginSkeleton"), you may define that here. Same goes for the other metadata derived from setup.py that # can be overwritten via __plugin_xyz__ control properties. See the documentation for that. __plugin_name__ = "PrettyGCode" - global __plugin_implementation__ = PrettyGCodePlugin() +def __plugin_load__(): + global __plugin_implementation__ + __plugin_implementation__ = PrettyGCodePlugin() global __plugin_hooks__ __plugin_hooks__ = { "octoprint.plugin.softwareupdate.check_config": __plugin_implementation__.get_update_information } + diff --git a/octoprint_prettygcode/static/css/prettygcode.css b/octoprint_prettygcode/static/css/prettygcode.css index f60e28f..9b3469d 100644 --- a/octoprint_prettygcode/static/css/prettygcode.css +++ b/octoprint_prettygcode/static/css/prettygcode.css @@ -91,7 +91,6 @@ .gwin #webcam_rotator { bottom: 20px; right: 40px; - width:360px; position: absolute; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); z-index:5; diff --git a/octoprint_prettygcode/templates/prettygcode_tab.jinja2 b/octoprint_prettygcode/templates/prettygcode_tab.jinja2 index 090c4f9..87d9c45 100644 --- a/octoprint_prettygcode/templates/prettygcode_tab.jinja2 +++ b/octoprint_prettygcode/templates/prettygcode_tab.jinja2 @@ -38,6 +38,7 @@ Options:
-/* Make webcam bigger in fullscreen mode. */
+/* Make webcam smaller in fullscreen mode. */
.pgfullscreen .gwin #webcam_rotator {
- width: 640px;
+ width: 360px;
}