]> Untitled Git - lemmy-ui.git/commitdiff
Merge branch 'main' into main
authorZetaphor <Zetaphor@users.noreply.github.com>
Thu, 22 Jun 2023 18:53:50 +0000 (15:53 -0300)
committerGitHub <noreply@github.com>
Thu, 22 Jun 2023 18:53:50 +0000 (15:53 -0300)
src/server/utils/create-ssr-html.tsx
src/shared/components/common/pictrs-image.tsx

index 39725fa52ce47e65ae8880f2bb97f76f4b8da47f..13775981b2972d97ff1561b264bbd0093b6d7ee2 100644 (file)
@@ -73,7 +73,7 @@ export async function createSsrHtml(
     <!-- Required meta tags -->
     <meta name="Description" content="Lemmy">
     <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
+    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
     <link
        id="favicon"
        rel="shortcut icon"
index 7443749094970cd427bf9ea8cc30a07349d413cc..31fb12299663f27ec9df5d43dec9cf0966783d1e 100644 (file)
@@ -22,7 +22,7 @@ export class PictrsImage extends Component<PictrsImageProps, any> {
 
   render() {
     return (
-      <picture className="pictrs-image d-inline-block overflow-hidden">
+      <picture>
         <source srcSet={this.src("webp")} type="image/webp" />
         <source srcSet={this.props.src} />
         <source srcSet={this.src("jpg")} type="image/jpeg" />
@@ -31,7 +31,7 @@ export class PictrsImage extends Component<PictrsImageProps, any> {
           alt={this.alt()}
           title={this.alt()}
           loading="lazy"
-          className={classNames({
+          className={classNames("overflow-hidden pictrs-image", {
             "img-fluid": !this.props.icon && !this.props.iconOverlay,
             banner: this.props.banner,
             "thumbnail rounded":