Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: four fe bugs #1768

Merged
merged 1 commit into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/website/pages/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const faqs = [
content: faqContent.dataStorageLength,
},
{
question: 'What are the upload or file size restrictions on NFT.storage?',
question: 'What are the upload or file size restrictions on NFT.Storage?',
content: faqContent.nftSizeRestrictions,
},
{
Expand Down
84 changes: 42 additions & 42 deletions packages/website/pages/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export default function Files({ user }) {
{isLoading ? (
<VscLoading
height={18}
className="dib relative"
className="dib relative spin"
fill="currentColor"
/>
) : (
Expand Down Expand Up @@ -555,50 +555,50 @@ export default function Files({ user }) {
)}
</tbody>
</table>
<div className="flex flex-wrap justify-center tc mv3">
<Button
className="mh2 mb2"
disabled={befores.length === 1}
onClick={handleFirstClick}
id="files-first"
tracking={{
event: countly.events.FILES_NAVIGATION_CLICK,
ui: countly.ui.FILES,
action: 'First',
}}
>
⇤ First
</Button>
<Button
className="mh2 mb2"
disabled={befores.length === 1}
onClick={handlePrevClick}
id="files-previous"
tracking={{
event: countly.events.FILES_NAVIGATION_CLICK,
ui: countly.ui.FILES,
action: 'Previous',
}}
>
← Previous
</Button>
<Button
className="mh2 mb2"
disabled={nfts.length < limit}
onClick={handleNextClick}
id="files-next"
tracking={{
event: countly.events.FILES_NAVIGATION_CLICK,
ui: countly.ui.FILES,
action: 'Next',
}}
>
Next →
</Button>
</div>
</>
</When>
</div>
<div className="flex flex-wrap justify-center tc mv3">
<Button
className="mh2 mb2"
disabled={befores.length === 1}
onClick={handleFirstClick}
id="files-first"
tracking={{
event: countly.events.FILES_NAVIGATION_CLICK,
ui: countly.ui.FILES,
action: 'First',
}}
>
⇤ First
</Button>
<Button
className="mh2 mb2"
disabled={befores.length === 1}
onClick={handlePrevClick}
id="files-previous"
tracking={{
event: countly.events.FILES_NAVIGATION_CLICK,
ui: countly.ui.FILES,
action: 'Previous',
}}
>
← Previous
</Button>
<Button
className="mh2 mb2"
disabled={nfts.length < limit}
onClick={handleNextClick}
id="files-next"
tracking={{
event: countly.events.FILES_NAVIGATION_CLICK,
ui: countly.ui.FILES,
action: 'Next',
}}
>
Next →
</Button>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did these move out of the When block?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that they don't scroll horizontally with the table

</>
</When>
<div
Expand Down
4 changes: 2 additions & 2 deletions packages/website/styles/logos.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
width: 100%;
height: 80px;
object-fit: contain;
border: 1px solid rgba(0, 0, 0, 0.15);
border: 1px solid rgba(0, 0, 0, 0.15) !important;
border-radius: 4px;
padding: 12px 20px;
padding: 12px 20px !important;
object-position: center;
-webkit-user-select: none;
user-select: none;
Expand Down
12 changes: 7 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2845,11 +2845,6 @@
dependencies:
"@types/node" "*"

"@types/lodash@^4.14.179":
version "4.14.180"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.180.tgz#4ab7c9ddfc92ec4a887886483bc14c79fb380670"
integrity sha512-XOKXa1KIxtNXgASAnwj7cnttJxS4fksBRywK/9LzRV5YxrF80BXZIGeQSuoESQ/VkUj30Ae0+YcuHc15wJCB2g==

"@types/long@^4.0.1":
version "4.0.1"
resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9"
Expand Down Expand Up @@ -3035,6 +3030,13 @@
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c"
integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==

"@types/swagger-ui-react@^4.1.1":
version "4.1.1"
resolved "https://registry.yarnpkg.com/@types/swagger-ui-react/-/swagger-ui-react-4.1.1.tgz#6ae70f5b966941eb6655d79d1114d9b9ef69a980"
integrity sha512-tZqX/nShvNqtJ7WAfwOK7mphK1jqmEre4mUJh+R1RyCFVODsMTG4My2nqjXpSm8NfhVGmbFH3giD17AXmgsaJw==
dependencies:
"@types/react" "*"

"@types/tar@^6.1.1":
version "6.1.1"
resolved "https://registry.yarnpkg.com/@types/tar/-/tar-6.1.1.tgz#ab341ec1f149d7eb2a4f4ded56ff85f0d4fe7cb5"
Expand Down