@@ -8,6 +8,7 @@ import { View } from "@instructure/ui-view";
88import { Flex } from "@instructure/ui-flex" ;
99import { Heading } from "@instructure/ui-heading" ;
1010import { NumberInput } from "@instructure/ui-number-input" ;
11+ import { TextInput } from "@instructure/ui-text-input" ;
1112import GitHubLink from "./components/GitHubLink" ;
1213import BlankStat from "./components/BlankStat" ;
1314
@@ -146,37 +147,59 @@ const App = () => {
146147 Test Configuration
147148 </ legend >
148149 < Flex direction = "column" gap = "small" >
149- < div className = "flex items-center justify-between" >
150- < span >
151- Cache key: < code className = "text-sm" > { cacheKey } </ code >
152- </ span >
153- < Button
154- data-testid = "reset-cacheKey"
155- onClick = { ( ) => {
156- localStorage . removeItem ( "cacheKey" ) ;
157- window . location . reload ( ) ;
158- } }
159- >
160- Reset
161- </ Button >
162- </ div >
163- < div className = "flex items-center justify-between" >
164- < span >
165- Cache buster: < code className = "text-sm" > { cacheBuster } </ code >
166- </ span >
167- < Button
168- data-testid = "reset-cacheBuster"
169- onClick = { ( ) => {
170- localStorage . removeItem ( "cacheBuster" ) ;
171- window . location . reload ( ) ;
172- } }
173- >
174- Reset
175- </ Button >
176- </ div >
177-
178- < Flex gap = "medium" >
179- < Flex . Item shouldGrow >
150+ < Flex . Item >
151+ < Flex gap = "medium" justifyItems = "space-between" >
152+ < Flex . Item width = "48%" >
153+ < Flex direction = "row" alignItems = "end" >
154+ < Flex . Item shouldGrow >
155+ < TextInput
156+ renderLabel = "Cache key:"
157+ interaction = "disabled"
158+ value = { cacheKey }
159+ />
160+ </ Flex . Item >
161+ < Flex . Item >
162+ < Button
163+ margin = "0 0 0 xxx-small"
164+ data-testid = "reset-cacheKey"
165+ onClick = { ( ) => {
166+ localStorage . removeItem ( "cacheKey" ) ;
167+ window . location . reload ( ) ;
168+ } }
169+ >
170+ Reset
171+ </ Button >
172+ </ Flex . Item >
173+ </ Flex >
174+ </ Flex . Item >
175+ < Flex . Item width = "48%" >
176+ < Flex direction = "row" alignItems = "end" >
177+ < Flex . Item shouldGrow >
178+ < TextInput
179+ renderLabel = "Cache buster:"
180+ interaction = "disabled"
181+ value = { cacheBuster }
182+ />
183+ </ Flex . Item >
184+ < Flex . Item >
185+ < Button
186+ margin = "0 0 0 xxx-small"
187+ data-testid = "reset-cacheBuster"
188+ onClick = { ( ) => {
189+ localStorage . removeItem ( "cacheBuster" ) ;
190+ window . location . reload ( ) ;
191+ } }
192+ >
193+ Reset
194+ </ Button >
195+ </ Flex . Item >
196+ </ Flex >
197+ </ Flex . Item >
198+ </ Flex >
199+ </ Flex . Item >
200+
201+ < Flex justifyItems = "space-between" >
202+ < Flex . Item width = "48%" >
180203 < NumberInput
181204 renderLabel = "Size of data (KB):"
182205 onChange = { ( e ) => {
@@ -196,7 +219,7 @@ const App = () => {
196219 value = { Math . round ( itemSize / 1024 ) } // Display in KB
197220 />
198221 </ Flex . Item >
199- < Flex . Item shouldGrow >
222+ < Flex . Item width = "48%" >
200223 < NumberInput
201224 renderLabel = "Number of chunks:"
202225 interaction = "disabled"
0 commit comments