From 6c28cef9b377f7e70dcb07c28e9e8a27dbb46d55 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Fri, 19 Apr 2024 22:18:20 -0400 Subject: [PATCH] Fix store scrolling --- backend/Cargo.lock | 2 +- backend/Cargo.toml | 2 +- backend/build.sh | 8 +++---- backend/src/settings/steam_deck/util.rs | 2 +- package.json | 2 +- src/store/page.tsx | 31 ++++++++++++++----------- 6 files changed, 26 insertions(+), 21 deletions(-) diff --git a/backend/Cargo.lock b/backend/Cargo.lock index d76f0c1..a9c0d7f 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -1170,7 +1170,7 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "powertools" -version = "2.0.0-beta2" +version = "2.0.1-beta1" dependencies = [ "async-trait", "chrono", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 5d5e6a9..01f4f42 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "powertools" -version = "2.0.0-beta2" +version = "2.0.1-beta1" edition = "2021" authors = ["NGnius (Graham) "] description = "Backend (superuser) functionality for PowerTools" diff --git a/backend/build.sh b/backend/build.sh index 689ae88..416eeb7 100755 --- a/backend/build.sh +++ b/backend/build.sh @@ -3,11 +3,11 @@ #cargo build --release --target x86_64-unknown-linux-musl #cargo build --target x86_64-unknown-linux-musl #cross build -cargo build --release -#cargo build +#cargo build --release +cargo build mkdir -p ../bin #cp --preserve=mode ./target/x86_64-unknown-linux-musl/release/powertools ../bin/backend #cp --preserve=mode ./target/x86_64-unknown-linux-musl/debug/powertools ../bin/backend -cp --preserve=mode ./target/release/powertools ../bin/backend -#cp --preserve=mode ./target/debug/powertools ../bin/backend +#cp --preserve=mode ./target/release/powertools ../bin/backend +cp --preserve=mode ./target/debug/powertools ../bin/backend diff --git a/backend/src/settings/steam_deck/util.rs b/backend/src/settings/steam_deck/util.rs index 88d940c..3f02be1 100644 --- a/backend/src/settings/steam_deck/util.rs +++ b/backend/src/settings/steam_deck/util.rs @@ -31,7 +31,7 @@ const THINGS: &[u8] = &[ 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, ]; -const TIME_UNIT: std::time::Duration = std::time::Duration::from_millis(200); +const TIME_UNIT: std::time::Duration = std::time::Duration::from_millis(250); pub fn flash_led() { use smokepatio::ec::ControllerSet; diff --git a/package.json b/package.json index be7d9cd..76e72f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "PowerTools", - "version": "2.0.0-beta2", + "version": "2.0.1-beta1", "description": "Power tweaks for power users", "scripts": { "build": "shx rm -rf dist && rollup -c", diff --git a/src/store/page.tsx b/src/store/page.tsx index da8f36d..a9badb8 100644 --- a/src/store/page.tsx +++ b/src/store/page.tsx @@ -40,18 +40,22 @@ export class StoreResultsPage extends Component<{onNewVariant: () => void}> { { tr("No results") /* TODO translate */ } ); } else { - // TODO - return ( + return ( +
+ { storeItems.map((meta: backend.StoreMetadata) => ( void}> { )) } - ); + +
); } } else {