From b33f14cca477983a4a4cd10ac404c6f329a0fd81 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 29 Oct 2020 23:47:18 -0400 Subject: [PATCH] make file details smaller --- static/app-strings.json | 1 + ui/component/fileDetails/view.jsx | 104 ++++++++++++++++-------------- ui/scss/component/_media.scss | 12 ++++ 3 files changed, 68 insertions(+), 49 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 071b3d5b9..570ee0d25 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1480,5 +1480,6 @@ "Español": "Español", "Türkçe": "Türkçe", "Česky": "Česky", + "LBRY LATAM": "LBRY LATAM", "--end--": "--end--" } diff --git a/ui/component/fileDetails/view.jsx b/ui/component/fileDetails/view.jsx index 92a269a65..2b773259b 100644 --- a/ui/component/fileDetails/view.jsx +++ b/ui/component/fileDetails/view.jsx @@ -1,4 +1,5 @@ // @flow +import { SIMPLE_SITE } from 'config'; import React, { PureComponent } from 'react'; import Button from 'component/button'; import path from 'path'; @@ -38,58 +39,63 @@ class FileDetails extends PureComponent { } return ( - - - - - - - {fileSize && ( - - - - - )} + <> +
+ {__('LBRY URL')} + {claim.canonical_url} +
+
+ {__('Claim ID')} + {claim.claim_id} +
- - - - + {!SIMPLE_SITE && ( + <> + {languages && ( +
+ {__('Languages')} + {languages.join(' ')} +
+ )} - - - - + {languages && ( +
+ {__('Media Type')} + {mediaType} +
+ )} - {languages && ( - - - - - )} - - - - - {downloadPath && ( - - - - - )} - -
{__('Content Type')}{mediaType}
{__('File Size')}{fileSize}
{__('URL')}{claim.canonical_url}
{__('Claim ID')}{claim.claim_id}
{__('Languages')}{languages.join(' ')}
{__('License')}{license}
{__('Downloaded to')} -
+
+ {__('License')} + {license} +
+ + {downloadPath && ( +
+ {__('Downloaded to')} + +
+ )} + + )} + + {fileSize && ( +
+ {fileSize} +
+ )} + ); } } diff --git a/ui/scss/component/_media.scss b/ui/scss/component/_media.scss index c8afa98ab..a13a9f31a 100644 --- a/ui/scss/component/_media.scss +++ b/ui/scss/component/_media.scss @@ -153,3 +153,15 @@ } } } + +.media__details { + @extend .help; + font-size: var(--font-xxsmall); + display: flex; + flex-direction: column; + // margin-top: 0; + + &:first-of-type { + // margin-top: var(--spacing-m); + } +}