add lbry uri navigation on search page and make it easy to copy
This commit is contained in:
parent
0b4919db3f
commit
af4b34146e
3 changed files with 6 additions and 4 deletions
|
@ -181,9 +181,7 @@ class FilePage extends React.Component<Props> {
|
||||||
return (
|
return (
|
||||||
<Page notContained className="main--file-page">
|
<Page notContained className="main--file-page">
|
||||||
<div className="grid-area--content">
|
<div className="grid-area--content">
|
||||||
<h1 className="media__uri">
|
<h1 className="media__uri">{uri}</h1>
|
||||||
<Button navigate={uri} label={uri} />
|
|
||||||
</h1>
|
|
||||||
{insufficientCredits && (
|
{insufficientCredits && (
|
||||||
<div className="media__insufficient-credits help--warning">
|
<div className="media__insufficient-credits help--warning">
|
||||||
{__(
|
{__(
|
||||||
|
|
|
@ -10,6 +10,7 @@ import Page from 'component/page';
|
||||||
import ToolTip from 'component/common/tooltip';
|
import ToolTip from 'component/common/tooltip';
|
||||||
import Icon from 'component/common/icon';
|
import Icon from 'component/common/icon';
|
||||||
import SearchOptions from 'component/searchOptions';
|
import SearchOptions from 'component/searchOptions';
|
||||||
|
import Button from 'component/button';
|
||||||
|
|
||||||
type Props = { doSearch: string => void, location: UrlLocation };
|
type Props = { doSearch: string => void, location: UrlLocation };
|
||||||
|
|
||||||
|
@ -43,7 +44,9 @@ export default function SearchPage(props: Props) {
|
||||||
<Fragment>
|
<Fragment>
|
||||||
{isValid && (
|
{isValid && (
|
||||||
<header className="search__header">
|
<header className="search__header">
|
||||||
<h1 className="media__uri">{uri}</h1>
|
<Button navigate={uri} className="media__uri">
|
||||||
|
{uri}
|
||||||
|
</Button>
|
||||||
{isChannel ? (
|
{isChannel ? (
|
||||||
<ChannelTile size="large" isSearchResult uri={uri} />
|
<ChannelTile size="large" isSearchResult uri={uri} />
|
||||||
) : (
|
) : (
|
||||||
|
|
|
@ -145,6 +145,7 @@
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
|
user-select: all;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media__insufficient-credits {
|
.media__insufficient-credits {
|
||||||
|
|
Loading…
Reference in a new issue