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]]
|
[[package]]
|
||||||
name = "powertools"
|
name = "powertools"
|
||||||
version = "2.0.0-beta2"
|
version = "2.0.1-beta1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "powertools"
|
name = "powertools"
|
||||||
version = "2.0.0-beta2"
|
version = "2.0.1-beta1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["NGnius (Graham) <ngniusness@gmail.com>"]
|
authors = ["NGnius (Graham) <ngniusness@gmail.com>"]
|
||||||
description = "Backend (superuser) functionality for PowerTools"
|
description = "Backend (superuser) functionality for PowerTools"
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
#cargo build --release --target x86_64-unknown-linux-musl
|
#cargo build --release --target x86_64-unknown-linux-musl
|
||||||
#cargo build --target x86_64-unknown-linux-musl
|
#cargo build --target x86_64-unknown-linux-musl
|
||||||
#cross build
|
#cross build
|
||||||
cargo build --release
|
#cargo build --release
|
||||||
#cargo build
|
cargo build
|
||||||
|
|
||||||
mkdir -p ../bin
|
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/release/powertools ../bin/backend
|
||||||
#cp --preserve=mode ./target/x86_64-unknown-linux-musl/debug/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/release/powertools ../bin/backend
|
||||||
#cp --preserve=mode ./target/debug/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,
|
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() {
|
pub fn flash_led() {
|
||||||
use smokepatio::ec::ControllerSet;
|
use smokepatio::ec::ControllerSet;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "PowerTools",
|
"name": "PowerTools",
|
||||||
"version": "2.0.0-beta2",
|
"version": "2.0.1-beta1",
|
||||||
"description": "Power tweaks for power users",
|
"description": "Power tweaks for power users",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "shx rm -rf dist && rollup -c",
|
"build": "shx rm -rf dist && rollup -c",
|
||||||
|
|
|
@ -40,18 +40,22 @@ export class StoreResultsPage extends Component<{onNewVariant: () => void}> {
|
||||||
{ tr("No results") /* TODO translate */ }
|
{ tr("No results") /* TODO translate */ }
|
||||||
</Focusable>);
|
</Focusable>);
|
||||||
} else {
|
} else {
|
||||||
// TODO
|
return (
|
||||||
return (<Focusable
|
<div style={{
|
||||||
style={{
|
marginTop: "40px",
|
||||||
display: "flex",
|
marginBottom: "40px",
|
||||||
flexWrap: "wrap",
|
overflowY: "scroll",
|
||||||
justifyContent: "center",
|
}}>
|
||||||
rowGap: "5px",
|
<Focusable
|
||||||
columnGap: "5px",
|
style={{
|
||||||
maxWidth: "100%",
|
display: "flex",
|
||||||
margin: "2em 0.5em",
|
flexWrap: "wrap",
|
||||||
}}
|
justifyContent: "center",
|
||||||
>
|
rowGap: "0.5em",
|
||||||
|
columnGap: "0.5em",
|
||||||
|
maxWidth: "100%",
|
||||||
|
}}
|
||||||
|
>
|
||||||
{
|
{
|
||||||
storeItems.map((meta: backend.StoreMetadata) => (<PanelSectionRow>
|
storeItems.map((meta: backend.StoreMetadata) => (<PanelSectionRow>
|
||||||
<Focusable style={{
|
<Focusable style={{
|
||||||
|
@ -149,7 +153,8 @@ export class StoreResultsPage extends Component<{onNewVariant: () => void}> {
|
||||||
</Focusable>
|
</Focusable>
|
||||||
</PanelSectionRow>))
|
</PanelSectionRow>))
|
||||||
}
|
}
|
||||||
</Focusable>);
|
</Focusable>
|
||||||
|
</div>);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue