diff --git a/src/app/(root)/page.tsx b/src/app/(root)/page.tsx index 163173a..606c6da 100644 --- a/src/app/(root)/page.tsx +++ b/src/app/(root)/page.tsx @@ -394,7 +394,7 @@ function Root() {
+
{fileNameDisplay?.length > 50
? `${fileNameDisplay?.slice(0, 20)}...${fileNameDisplay?.slice(-10)}`
: fileNameDisplay}
@@ -486,8 +486,8 @@ function Root() {
{!video?.isCompressing ? (
video?.isCompressionSuccessful ? (
-
-
+
+
{video?.size}
-
+
{video?.compressedVideo?.size}
{!(sizeDiff <= 0) ? (
-
+
{sizeDiff.toFixed(2)?.endsWith('.00')
? sizeDiff.toFixed(2)?.slice(0, -3)
: sizeDiff.toFixed(2)}
%smaller
) : null}
-
+
-
+
- {renderCompressButton('md', 'hlg:hidden')}
- {renderCompressButton('lg', 'hidden hlg:flex hlg:mt-2')}
+ {renderCompressButton('md', 'hslg:hidden')}
+ {renderCompressButton('lg', 'hidden hslg:flex hslg:mt-2')}
>
)
) : null}
diff --git a/tailwind.config.ts b/tailwind.config.ts
index b46ff2a..5734845 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -5,6 +5,7 @@ const WIDTHS = Object.freeze({
xs: '320px',
sm: '576px',
md: '768px',
+ slg: '850px',
lg: '992px',
xl: '1280px',
'2xl': '1440px',
@@ -15,6 +16,7 @@ const CUSTOM_MQ = {
hxs: { raw: `(min-height: ${WIDTHS.xs})` },
hsm: { raw: `(min-height: ${WIDTHS.sm})` },
hmd: { raw: `(min-height: ${WIDTHS.md})` },
+ hslg: { raw: `(min-height: ${WIDTHS.slg})` },
hlg: { raw: `(min-height: ${WIDTHS.lg})` },
hxl: { raw: `(min-height: ${WIDTHS.xl})` },
h2xl: { raw: `(min-height: ${WIDTHS['2xl']})` },