forked from NG-SD-Plugins/PowerTools
Fix store scrolling
This commit is contained in:
parent
c1064fdf92
commit
6c28cef9b3
6 changed files with 26 additions and 21 deletions
2
backend/Cargo.lock
generated
2
backend/Cargo.lock
generated
|
@ -1170,7 +1170,7 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
|
|||
|
||||
[[package]]
|
||||
name = "powertools"
|
||||
version = "2.0.0-beta2"
|
||||
version = "2.0.1-beta1"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"chrono",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "powertools"
|
||||
version = "2.0.0-beta2"
|
||||
version = "2.0.1-beta1"
|
||||
edition = "2021"
|
||||
authors = ["NGnius (Graham) <ngniusness@gmail.com>"]
|
||||
description = "Backend (superuser) functionality for PowerTools"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -40,16 +40,20 @@ export class StoreResultsPage extends Component<{onNewVariant: () => void}> {
|
|||
{ tr("No results") /* TODO translate */ }
|
||||
</Focusable>);
|
||||
} else {
|
||||
// TODO
|
||||
return (<Focusable
|
||||
return (
|
||||
<div style={{
|
||||
marginTop: "40px",
|
||||
marginBottom: "40px",
|
||||
overflowY: "scroll",
|
||||
}}>
|
||||
<Focusable
|
||||
style={{
|
||||
display: "flex",
|
||||
flexWrap: "wrap",
|
||||
justifyContent: "center",
|
||||
rowGap: "5px",
|
||||
columnGap: "5px",
|
||||
rowGap: "0.5em",
|
||||
columnGap: "0.5em",
|
||||
maxWidth: "100%",
|
||||
margin: "2em 0.5em",
|
||||
}}
|
||||
>
|
||||
{
|
||||
|
@ -149,7 +153,8 @@ export class StoreResultsPage extends Component<{onNewVariant: () => void}> {
|
|||
</Focusable>
|
||||
</PanelSectionRow>))
|
||||
}
|
||||
</Focusable>);
|
||||
</Focusable>
|
||||
</div>);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue