Skip to content

Commit bf7879f

Browse files
committed
minor styling cleanup
1 parent 228084f commit bf7879f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

experimental/fasthtml/run.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@
4848
@group(0) @binding(0) var<storage, read_write> input : array<f32>;
4949
@group(0) @binding(1) var<storage, read_write> output : array<f32>;
5050
@compute @workgroup_size(256)
51-
fn main(
52-
@builtin(global_invocation_id) GlobalInvocationID: vec3<u32>) {
53-
let i: u32 = GlobalInvocationID.x;
54-
if (i < arrayLength(&input)) {
55-
output[i] = input[i] + 1;
56-
}
51+
fn main(@builtin(global_invocation_id) GlobalInvocationID: vec3<u32>) {
52+
let i: u32 = GlobalInvocationID.x;
53+
if (i < arrayLength(&input)) {
54+
output[i] = input[i] + 1;
5755
}
56+
}
5857
"""
5958

6059
# TODO(avh) : Global state handling of terminal binding, module creation, etc.
@@ -107,7 +106,7 @@ def output():
107106
return Div(
108107
"Output",
109108
id="output",
110-
style="width: 34vw; height:100vh; background-color: #444; float: right;",
109+
style="width: 50vw; height:100vh; background-color: #444; float: right;",
111110
), Script(bind_terminal)
112111

113112

@@ -119,7 +118,7 @@ def get():
119118
Div(
120119
Div(
121120
CodeEditor(initial_content=gelu_kernel),
122-
style="width: 66vw; height:100vh; background-color: #333; float: left;",
121+
style="width: 50vw; height:100vh; background-color: #333; float: left;",
123122
),
124123
output(),
125124
),

0 commit comments

Comments
 (0)