mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix mobile buttons styling, flexbox
This commit is contained in:
@@ -54,8 +54,10 @@ export const NavBar = styled.div`
|
||||
transition: top 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.board-select {
|
||||
float: left;
|
||||
.nav-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
strong {
|
||||
@@ -77,7 +79,6 @@ export const NavBar = styled.div`
|
||||
text-decoration: none;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
${({ selectedStyle }) => {
|
||||
@@ -86,14 +87,14 @@ export const NavBar = styled.div`
|
||||
return `font-size: 9pt;
|
||||
color: #b86;
|
||||
|
||||
a, button {
|
||||
a, span {
|
||||
font-weight: 400 !important;
|
||||
padding: 1px !important;
|
||||
text-decoration: none !important;
|
||||
color: maroon !important;
|
||||
}
|
||||
|
||||
a:hover, button:hover {
|
||||
a:hover, span:hover {
|
||||
color: red !important;
|
||||
}
|
||||
|
||||
@@ -114,14 +115,14 @@ export const NavBar = styled.div`
|
||||
return `font-size: 9pt;
|
||||
color: #89a;
|
||||
|
||||
a, button {
|
||||
a, span {
|
||||
font-weight: 400 !important;
|
||||
padding: 1px !important;
|
||||
text-decoration: none !important;
|
||||
color: #34345c !important;
|
||||
}
|
||||
|
||||
a:hover, button:hover {
|
||||
a:hover, span:hover {
|
||||
color: #d00 !important;
|
||||
}
|
||||
|
||||
@@ -132,14 +133,14 @@ export const NavBar = styled.div`
|
||||
case 'Futaba':
|
||||
return `font-size: 11pt;
|
||||
|
||||
a, a:visited, button {
|
||||
a, a:visited, span {
|
||||
font-weight: 400 !important;
|
||||
padding: 1px !important;
|
||||
color: #00e !important;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
a:hover, button:hover {
|
||||
a:hover, span:hover {
|
||||
color: red !important;
|
||||
}
|
||||
|
||||
@@ -157,14 +158,14 @@ export const NavBar = styled.div`
|
||||
case 'Burichan':
|
||||
return `font-size: 11pt;
|
||||
|
||||
a, a:visited, button {
|
||||
a, a:visited, span {
|
||||
font-weight: 400 !important;
|
||||
padding: 1px !important;
|
||||
color: #34345c !important;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
a:hover, button:hover {
|
||||
a:hover, span:hover {
|
||||
color: #d00 !important;
|
||||
}
|
||||
|
||||
@@ -179,14 +180,14 @@ export const NavBar = styled.div`
|
||||
return `font-size: 9pt;
|
||||
color: #c5c8c6;
|
||||
|
||||
a, a:visited, button {
|
||||
a, a:visited, span {
|
||||
font-weight: 400 !important;
|
||||
padding: 1px !important;
|
||||
text-decoration: none !important;
|
||||
color: #81a2be !important;
|
||||
}
|
||||
|
||||
a:hover, button:hover {
|
||||
a:hover, span:hover {
|
||||
color: #5f89ab !important;
|
||||
}
|
||||
|
||||
@@ -205,14 +206,14 @@ export const NavBar = styled.div`
|
||||
return `font-size: 9pt;
|
||||
color: #333;
|
||||
|
||||
a, a:visited, button {
|
||||
a, a:visited, span {
|
||||
font-weight: 400 !important;
|
||||
padding: 1px !important;
|
||||
text-decoration: none !important;
|
||||
color: #f60 !important;
|
||||
}
|
||||
|
||||
a:hover, button:hover {
|
||||
a:hover, span:hover {
|
||||
color: #ff3300 !important;
|
||||
}
|
||||
|
||||
@@ -511,7 +512,7 @@ export const PostFormLink = styled.div`
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
color: inherit !important;
|
||||
@@ -532,7 +533,7 @@ export const PostFormLink = styled.div`
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
color: #34345c !important;
|
||||
@@ -553,7 +554,7 @@ export const PostFormLink = styled.div`
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none !important;
|
||||
border: none;
|
||||
color: inherit !important;
|
||||
@@ -574,7 +575,7 @@ export const PostFormLink = styled.div`
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none !important;
|
||||
border: none;
|
||||
color: inherit !important;
|
||||
@@ -595,7 +596,7 @@ export const PostFormLink = styled.div`
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none !important;
|
||||
border: none;
|
||||
color: #707070 !important;
|
||||
@@ -614,7 +615,7 @@ export const PostFormLink = styled.div`
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
color: #333 !important;
|
||||
@@ -1472,7 +1473,7 @@ export const TopBar = styled.div`
|
||||
|
||||
.subscribe-button-mobile {
|
||||
margin-right: 10px;
|
||||
margin-top: -2px;
|
||||
margin-top: 1px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
font-size: 13.3333px !important;
|
||||
@@ -1499,7 +1500,7 @@ export const TopBar = styled.div`
|
||||
font-size: 10pt !important;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
color: inherit !important;
|
||||
@@ -1520,7 +1521,7 @@ export const TopBar = styled.div`
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
color: #34345c !important;
|
||||
@@ -1542,11 +1543,9 @@ export const TopBar = styled.div`
|
||||
font-family: times new roman !important;
|
||||
}
|
||||
|
||||
.subscribe-button-mobile {
|
||||
margin-top: -5px !important;
|
||||
}
|
||||
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none !important;
|
||||
border: none;
|
||||
color: inherit !important;
|
||||
@@ -1569,10 +1568,10 @@ export const TopBar = styled.div`
|
||||
}
|
||||
|
||||
.subscribe-button-mobile {
|
||||
margin-top: -5px !important;
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none !important;
|
||||
border: none;
|
||||
color: inherit !important;
|
||||
@@ -1593,7 +1592,7 @@ export const TopBar = styled.div`
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
color: #707070 !important;
|
||||
@@ -1618,7 +1617,7 @@ export const TopBar = styled.div`
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-wrap a {
|
||||
.btn-wrap a, .btn-wrap span {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
color: #333 !important;
|
||||
|
||||
@@ -236,28 +236,29 @@ const All = () => {
|
||||
]
|
||||
</span>
|
||||
<div id="board-nav-mobile" style={{ top: visible ? 0 : '-23px' }}>
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value="all" onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<button style={{all: 'unset', cursor: 'pointer'}} onClick={
|
||||
<div className="nav-container">
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value="all" onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<span style={{cursor: 'pointer'}} onClick={
|
||||
() => alert(
|
||||
'To create a board, first you have to run a full node.\nYou can run a full node by simply browsing with the plebbit desktop app. After you download it, open it, wait for it loading, then click on "Home" in the top left, then "Create Community".\n\nAfter you create the community, you can go back to plebchan at any time to see it as a board by pasting its address (begins with p/12D3KooW...) in the search bar, which is in the Home.\n\nNote:\n\n- Your community will be online for as long as you leave the app open, because it functions like a server for the community.\n- The longer you leave the app open, the more data you are seeding to the protocol, which helps performance for everybody.\n - All the data in the plebbit protocol is just text, which is extremely lightweight. All media is generated by links, which is text, embedded by the clients.\n\nDownload the plebbit app here: https://github.com/plebbit/plebbit-react/releases\n\nYou can also use a CLI: https://github.com/plebbit/plebbit-cli\n\nRunning boards in the plebchan app is a planned feature.\n\n'
|
||||
)
|
||||
}>Create Board</button>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/all/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
||||
)}>Home</Link>
|
||||
}>Create Board</span>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/all/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="separator-mobile"> </div>
|
||||
|
||||
@@ -137,28 +137,29 @@ const AllCatalog = () => {
|
||||
]
|
||||
</span>
|
||||
<div id="board-nav-mobile" style={{ top: visible ? 0 : '-23px' }}>
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value="all" onChange={handleSelectChange}>
|
||||
<option value="All">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<button style={{all: 'unset', cursor: 'pointer'}} onClick={
|
||||
<div className="nav-container">
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value="all" onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<span style={{cursor: 'pointer'}} onClick={
|
||||
() => alert(
|
||||
'To create a board, first you have to run a full node.\nYou can run a full node by simply browsing with the plebbit desktop app. After you download it, open it, wait for it loading, then click on "Home" in the top left, then "Create Community".\n\nAfter you create the community, you can go back to plebchan at any time to see it as a board by pasting its address (begins with p/12D3KooW...) in the search bar, which is in the Home.\n\nNote:\n\n- Your community will be online for as long as you leave the app open, because it functions like a server for the community.\n- The longer you leave the app open, the more data you are seeding to the protocol, which helps performance for everybody.\n - All the data in the plebbit protocol is just text, which is extremely lightweight. All media is generated by links, which is text, embedded by the clients.\n\nDownload the plebbit app here: https://github.com/plebbit/plebbit-react/releases\n\nYou can also use a CLI: https://github.com/plebbit/plebbit-cli\n\nRunning boards in the plebchan app is a planned feature.\n\n'
|
||||
)
|
||||
}>Create Board</button>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/all/catalog/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
||||
)}>Home</Link>
|
||||
}>Create Board</span>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/all/catalog/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="separator-mobile"> </div>
|
||||
|
||||
@@ -579,27 +579,29 @@ const Board = () => {
|
||||
]
|
||||
</span>
|
||||
<div id="board-nav-mobile" style={{ top: visible ? 0 : '-23px' }}>
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value={selectedAddress} onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<button style={{all: 'unset', cursor: 'pointer'}} onClick={
|
||||
<div className="nav-container">
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value={selectedAddress} onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<span style={{cursor: 'pointer'}} onClick={
|
||||
() => alert(
|
||||
'To create a board, first you have to run a full node.\nYou can run a full node by simply browsing with the plebbit desktop app. After you download it, open it, wait for it loading, then click on "Home" in the top left, then "Create Community".\n\nAfter you create the community, you can go back to plebchan at any time to see it as a board by pasting its address (begins with p/12D3KooW...) in the search bar, which is in the Home.\n\nNote:\n\n- Your community will be online for as long as you leave the app open, because it functions like a server for the community.\n- The longer you leave the app open, the more data you are seeding to the protocol, which helps performance for everybody.\n - All the data in the plebbit protocol is just text, which is extremely lightweight. All media is generated by links, which is text, embedded by the clients.\n\nDownload the plebbit app here: https://github.com/plebbit/plebbit-react/releases\n\nYou can also use a CLI: https://github.com/plebbit/plebbit-cli\n\nRunning boards in the plebchan app is a planned feature.\n\n'
|
||||
)
|
||||
}>Create Board</button>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/${selectedAddress}/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home</Link>
|
||||
}>Create Board</span>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/${selectedAddress}/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="separator-mobile"> </div>
|
||||
@@ -695,14 +697,18 @@ const Board = () => {
|
||||
<>
|
||||
<span className="subscribe-button-desktop">
|
||||
[
|
||||
<button id="subscribe" style={{all: 'unset', cursor: 'pointer'}}
|
||||
onClick={() => handleSubscribe()}>{subscribed ? "Unsubscribe" : "Subscribe"}
|
||||
</button>
|
||||
<span id="subscribe" style={{cursor: 'pointer'}}>
|
||||
<span onClick={() => handleSubscribe()}>
|
||||
{subscribed ? "Unsubscribe" : "Subscribe"}
|
||||
</span>
|
||||
</span>
|
||||
]
|
||||
</span>
|
||||
<button className="subscribe-button-mobile btn-wrap"
|
||||
onClick={() => handleSubscribe()}>{subscribed ? "Unsubscribe" : "Subscribe"}
|
||||
</button>
|
||||
<span className="subscribe-button-mobile">
|
||||
<span className="btn-wrap" onClick={() => handleSubscribe()}>
|
||||
{subscribed ? "Unsubscribe" : "Subscribe"}
|
||||
</span>
|
||||
</span>
|
||||
</>
|
||||
) : (
|
||||
<div id="stats" style={{float: "right", marginTop: "5px"}}>
|
||||
|
||||
@@ -502,28 +502,29 @@ const Catalog = () => {
|
||||
]
|
||||
</span>
|
||||
<div id="board-nav-mobile" style={{ top: visible ? 0 : '-23px' }}>
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value={selectedAddress} onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<button style={{all: 'unset', cursor: 'pointer'}} onClick={
|
||||
<div className="nav-container">
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value={selectedAddress} onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<span style={{cursor: 'pointer'}} onClick={
|
||||
() => alert(
|
||||
'To create a board, first you have to run a full node.\nYou can run a full node by simply browsing with the plebbit desktop app. After you download it, open it, wait for it loading, then click on "Home" in the top left, then "Create Community".\n\nAfter you create the community, you can go back to plebchan at any time to see it as a board by pasting its address (begins with p/12D3KooW...) in the search bar, which is in the Home.\n\nNote:\n\n- Your community will be online for as long as you leave the app open, because it functions like a server for the community.\n- The longer you leave the app open, the more data you are seeding to the protocol, which helps performance for everybody.\n - All the data in the plebbit protocol is just text, which is extremely lightweight. All media is generated by links, which is text, embedded by the clients.\n\nDownload the plebbit app here: https://github.com/plebbit/plebbit-react/releases\n\nYou can also use a CLI: https://github.com/plebbit/plebbit-cli\n\nRunning boards in the plebchan app is a planned feature.\n\n'
|
||||
)
|
||||
}>Create Board</button>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/${selectedAddress}/catalog/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
||||
)}>Home</Link>
|
||||
}>Create Board</span>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/${selectedAddress}/catalog/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="separator-mobile"> </div>
|
||||
@@ -620,16 +621,20 @@ const Catalog = () => {
|
||||
{feed.length > 0 ? (
|
||||
<>
|
||||
<span className="subscribe-button-desktop">
|
||||
[
|
||||
<button id="subscribe" style={{all: 'unset', cursor: 'pointer'}}
|
||||
onClick={() => handleSubscribe()}>{subscribed ? "Unsubscribe" : "Subscribe"}
|
||||
</button>
|
||||
]
|
||||
</span>
|
||||
<button className="subscribe-button-mobile btn-wrap"
|
||||
onClick={() => handleSubscribe()}>{subscribed ? "Unsubscribe" : "Subscribe"}
|
||||
</button>
|
||||
</>
|
||||
[
|
||||
<span id="subscribe" style={{cursor: 'pointer'}}>
|
||||
<span onClick={() => handleSubscribe()}>
|
||||
{subscribed ? "Unsubscribe" : "Subscribe"}
|
||||
</span>
|
||||
</span>
|
||||
]
|
||||
</span>
|
||||
<span className="subscribe-button-mobile">
|
||||
<span className="btn-wrap" onClick={() => handleSubscribe()}>
|
||||
{subscribed ? "Unsubscribe" : "Subscribe"}
|
||||
</span>
|
||||
</span>
|
||||
</>
|
||||
) : (
|
||||
<div id="stats" style={{float: "right", marginTop: "5px"}}>
|
||||
<span className={stateString ? "ellipsis" : ""}>{stateString}</span>
|
||||
|
||||
@@ -145,6 +145,11 @@ const Pending = () => {
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<span style={{cursor: 'pointer'}} onClick={
|
||||
() => alert(
|
||||
'To create a board, first you have to run a full node.\nYou can run a full node by simply browsing with the plebbit desktop app. After you download it, open it, wait for it loading, then click on "Home" in the top left, then "Create Community".\n\nAfter you create the community, you can go back to plebchan at any time to see it as a board by pasting its address (begins with p/12D3KooW...) in the search bar, which is in the Home.\n\nNote:\n\n- Your community will be online for as long as you leave the app open, because it functions like a server for the community.\n- The longer you leave the app open, the more data you are seeding to the protocol, which helps performance for everybody.\n - All the data in the plebbit protocol is just text, which is extremely lightweight. All media is generated by links, which is text, embedded by the clients.\n\nDownload the plebbit app here: https://github.com/plebbit/plebbit-react/releases\n\nYou can also use a CLI: https://github.com/plebbit/plebbit-cli\n\nRunning boards in the plebchan app is a planned feature.\n\n'
|
||||
)
|
||||
}>Create Board</span>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/profile/c/${index}/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
@@ -235,28 +235,29 @@ const Subscriptions = () => {
|
||||
]
|
||||
</span>
|
||||
<div id="board-nav-mobile" style={{ top: visible ? 0 : '-23px' }}>
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value="subscriptions" onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<button style={{all: 'unset', cursor: 'pointer'}} onClick={
|
||||
<div className="nav-container">
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value="subscriptions" onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<span style={{cursor: 'pointer'}} onClick={
|
||||
() => alert(
|
||||
'To create a board, first you have to run a full node.\nYou can run a full node by simply browsing with the plebbit desktop app. After you download it, open it, wait for it loading, then click on "Home" in the top left, then "Create Community".\n\nAfter you create the community, you can go back to plebchan at any time to see it as a board by pasting its address (begins with p/12D3KooW...) in the search bar, which is in the Home.\n\nNote:\n\n- Your community will be online for as long as you leave the app open, because it functions like a server for the community.\n- The longer you leave the app open, the more data you are seeding to the protocol, which helps performance for everybody.\n - All the data in the plebbit protocol is just text, which is extremely lightweight. All media is generated by links, which is text, embedded by the clients.\n\nDownload the plebbit app here: https://github.com/plebbit/plebbit-react/releases\n\nYou can also use a CLI: https://github.com/plebbit/plebbit-cli\n\nRunning boards in the plebchan app is a planned feature.\n\n'
|
||||
)
|
||||
}>Create Board</button>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/subscriptions/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
||||
)}>Home</Link>
|
||||
}>Create Board</span>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/subscriptions/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="separator-mobile"> </div>
|
||||
|
||||
@@ -138,28 +138,29 @@ const SubscriptionsCatalog = () => {
|
||||
]
|
||||
</span>
|
||||
<div id="board-nav-mobile" style={{ top: visible ? 0 : '-23px' }}>
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value="subscriptions" onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<button style={{all: 'unset', cursor: 'pointer'}} onClick={
|
||||
<div className="nav-container">
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value="subscriptions" onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<span style={{cursor: 'pointer'}} onClick={
|
||||
() => alert(
|
||||
'To create a board, first you have to run a full node.\nYou can run a full node by simply browsing with the plebbit desktop app. After you download it, open it, wait for it loading, then click on "Home" in the top left, then "Create Community".\n\nAfter you create the community, you can go back to plebchan at any time to see it as a board by pasting its address (begins with p/12D3KooW...) in the search bar, which is in the Home.\n\nNote:\n\n- Your community will be online for as long as you leave the app open, because it functions like a server for the community.\n- The longer you leave the app open, the more data you are seeding to the protocol, which helps performance for everybody.\n - All the data in the plebbit protocol is just text, which is extremely lightweight. All media is generated by links, which is text, embedded by the clients.\n\nDownload the plebbit app here: https://github.com/plebbit/plebbit-react/releases\n\nYou can also use a CLI: https://github.com/plebbit/plebbit-cli\n\nRunning boards in the plebchan app is a planned feature.\n\n'
|
||||
)
|
||||
}>Create Board</button>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/subscriptions/catalog/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
||||
)}>Home</Link>
|
||||
}>Create Board</span>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/subscriptions/catalog/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="separator-mobile"> </div>
|
||||
|
||||
@@ -537,27 +537,29 @@ const Thread = () => {
|
||||
]
|
||||
</span>
|
||||
<div id="board-nav-mobile" style={{ top: visible ? 0 : '-23px' }}>
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value={selectedAddress} onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<button style={{all: 'unset', cursor: 'pointer'}} onClick={
|
||||
<div className="nav-container">
|
||||
<div className="board-select">
|
||||
<strong>Board</strong>
|
||||
|
||||
<select id="board-select-mobile" value={selectedAddress} onChange={handleSelectChange}>
|
||||
<option value="all">All</option>
|
||||
<option value="subscriptions">Subscriptions</option>
|
||||
{defaultSubplebbits.map(subplebbit => (
|
||||
<option key={`option-${subplebbit.address}`} value={subplebbit.address}
|
||||
>{subplebbit.title ? subplebbit.title : subplebbit.address}</option>
|
||||
))}
|
||||
</select>
|
||||
<span style={{cursor: 'pointer'}} onClick={
|
||||
() => alert(
|
||||
'To create a board, first you have to run a full node.\nYou can run a full node by simply browsing with the plebbit desktop app. After you download it, open it, wait for it loading, then click on "Home" in the top left, then "Create Community".\n\nAfter you create the community, you can go back to plebchan at any time to see it as a board by pasting its address (begins with p/12D3KooW...) in the search bar, which is in the Home.\n\nNote:\n\n- Your community will be online for as long as you leave the app open, because it functions like a server for the community.\n- The longer you leave the app open, the more data you are seeding to the protocol, which helps performance for everybody.\n - All the data in the plebbit protocol is just text, which is extremely lightweight. All media is generated by links, which is text, embedded by the clients.\n\nDownload the plebbit app here: https://github.com/plebbit/plebbit-react/releases\n\nYou can also use a CLI: https://github.com/plebbit/plebbit-cli\n\nRunning boards in the plebchan app is a planned feature.\n\n'
|
||||
)
|
||||
}>Create Board</button>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/${selectedAddress}/c/${selectedThread}/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home</Link>
|
||||
}>Create Board</span>
|
||||
</div>
|
||||
<div className="page-jump">
|
||||
<Link to={`/p/${selectedAddress}/c/${selectedThread}/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||
|
||||
<Link to="/" onClick={() => {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="separator-mobile"> </div>
|
||||
|
||||
Reference in New Issue
Block a user