diff --git a/src/components/widgets/background/PhotoInformation.jsx b/src/components/widgets/background/PhotoInformation.jsx index ce23a989..498ce3fc 100644 --- a/src/components/widgets/background/PhotoInformation.jsx +++ b/src/components/widgets/background/PhotoInformation.jsx @@ -166,6 +166,8 @@ function PhotoInformation({ info, url, api }) { }; } catch (e) {} + const widgetStyle = localStorage.getItem('widgetStyle'); + return (
openExcludeModal(false)} /> - {localStorage.getItem('widgetStyle') === 'legacy' && ( + {widgetStyle === 'legacy' && (
@@ -200,10 +202,10 @@ function PhotoInformation({ info, url, api }) {
)} - {localStorage.getItem('widgetStyle') !== 'legacy' || other ? ( + {widgetStyle !== 'legacy' || other ? (
setshowExtraInfo(true)} onMouseLeave={() => setshowExtraInfo(false)} > diff --git a/src/components/widgets/background/scss/_photoinformation.scss b/src/components/widgets/background/scss/_photoinformation.scss index 4773fb84..f19ffe53 100644 --- a/src/components/widgets/background/scss/_photoinformation.scss +++ b/src/components/widgets/background/scss/_photoinformation.scss @@ -123,6 +123,10 @@ text-decoration: underline; } } + + +.photoInformation { + animation: none !important; + } } .infoCard { @@ -424,7 +428,7 @@ } } -.photoInformation:hover { +.photoInformation:hover, .photoInformation-legacy +.photoInformation { .photoMap { height: auto !important;