Skip to content

Commit

Permalink
download cta
Browse files Browse the repository at this point in the history
  • Loading branch information
HardhatChad committed Mar 27, 2024
1 parent 00219e3 commit 581934c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
12 changes: 12 additions & 0 deletions public/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,18 @@ h2:where(.dark, .dark *) {
margin-top: auto;
}

.mt-1 {
margin-top: 0.25rem;
}

.mt-2 {
margin-top: 0.5rem;
}

.mt-3 {
margin-top: 0.75rem;
}

.flex {
display: flex;
}
Expand Down
9 changes: 7 additions & 2 deletions src/components/miner_toolbar/miner_toolbar_active.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ use dioxus::prelude::*;
use dioxus_router::prelude::Link;

use crate::{
components::{ActivityIndicator, IsToolbarOpen, MinerDisplayHash, Spinner, StopButton},
components::{
ActivityIndicator, IsToolbarOpen, MinerDisplayHash, Spinner, StopButton, WarningIcon,
},
hooks::{use_power_level, use_priority_fee, PowerLevel, PriorityFee},
metrics::{track, AppEvent},
miner::Miner,
Expand Down Expand Up @@ -236,9 +238,12 @@ fn DownloadLink(cx: Scope) -> Element {
render! {
div {
class: "flex flex-row gap-2 mt-8",
WarningIcon {
class: "w-4 h-4 mt-2 shrink-0"
}
p {
class: "text-sm my-auto",
"You are mining from a web browser. To avoid background throttling, "
"You are mining from a web browser which can lead to inconsistent results when this tab moves into the background. For better performance, "
Link {
to: Route::Download {},
class: "font-medium underline",
Expand Down

0 comments on commit 581934c

Please sign in to comment.