Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

feat(plugin): show filesize of each plugin when browsing

Gabe Kangas366afbbc9db8
diff --git a/web/components/admin/plugins/BrowseRegistry.tsx b/web/components/admin/plugins/BrowseRegistry.tsx
index e8585738ef..a53aadee2a 100644
--- a/web/components/admin/plugins/BrowseRegistry.tsx
+++ b/web/components/admin/plugins/BrowseRegistry.tsx
@@ -3,6 +3,7 @@ import { Alert, Button, Card, Empty, Space, Spin, Tag, Tooltip, Typography } fro
import { useTranslation } from 'next-export-i18n';
import { Localization } from '../../../types/localization';
import { isPluginUpdateAvailable } from '../../../utils/apis';
+import { readableBytes } from '../../../utils/images';
import { PuzzlePiece } from './PluginIcon';
import { permissionDescriptionKey, permissionNameKey } from './permissionDescriptions';
import s from './BrowseRegistry.module.scss';
@@ -187,6 +188,9 @@ export const BrowseRegistry = ({
<div className={s.title}>
<strong>{plugin.name}</strong>
{plugin.latest && <Text type="secondary"> v{plugin.latest.version}</Text>}
+ {plugin.latest?.sizeBytes ? (
+ <Text type="secondary"> &middot; {readableBytes(plugin.latest.sizeBytes)}</Text>
+ ) : null}
</div>
{plugin.summary && <Paragraph className={s.summary}>{plugin.summary}</Paragraph>}
{plugin.latest?.manifest?.permissions &&
diff --git a/web/components/ui/Content/Content.module.scss b/web/components/ui/Content/Content.module.scss
index 0963d93fb8..9b6f0aaf9c 100644
--- a/web/components/ui/Content/Content.module.scss
+++ b/web/components/ui/Content/Content.module.scss
@@ -113,6 +113,12 @@
width: 100%;
margin-bottom: 20px;
+ // Keep a consistent minimum height across tabs so switching between
+ // panes with different amounts of content (e.g. a short "About" vs. a
+ // long "Followers" list) doesn't collapse/expand the layout and make
+ // the page jump around.
+ min-height: 50vh;
+
h1,
h2,
h3 {