File tree Expand file tree Collapse file tree 2 files changed +24
-20
lines changed
resources/scripts/components/server Expand file tree Collapse file tree 2 files changed +24
-20
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export default () => {
6565
6666 return (
6767 < ServerContentBlock title = { 'Console' } css = { tw `flex flex-wrap` } >
68- < div css = { tw `w-full md :w-1/4` } >
68+ < div css = { tw `w-full lg :w-1/4` } >
6969 < TitledGreyBox css = { tw `break-all` } title = { name } icon = { faServer } >
7070 < p css = { tw `text-xs uppercase` } >
7171 < FontAwesomeIcon
@@ -138,7 +138,7 @@ export default () => {
138138 </ div >
139139 }
140140 </ div >
141- < div css = { tw `w-full md:flex-1 md:ml- 4 mt-4 md :mt-0` } >
141+ < div css = { tw `w-full lg:w-3/ 4 mt-4 lg :mt-0 lg:pl-4 ` } >
142142 < SuspenseSpinner >
143143 < ChunkedConsole />
144144 < ChunkedStatGraphs />
Original file line number Diff line number Diff line change @@ -142,24 +142,28 @@ export default () => {
142142
143143 return (
144144 < div css = { tw `flex flex-wrap mt-4` } >
145- < TitledGreyBox title = { 'Memory usage' } icon = { faMemory } css = { tw `md:flex-1 w-full md:w-1/2 md:mr-2` } >
146- { status !== 'offline' ?
147- < canvas id = { 'memory_chart' } ref = { memoryRef } aria-label = { 'Server Memory Usage Graph' } role = { 'img' } />
148- :
149- < p css = { tw `text-xs text-neutral-400 text-center p-3` } >
150- Server is offline.
151- </ p >
152- }
153- </ TitledGreyBox >
154- < TitledGreyBox title = { 'CPU usage' } icon = { faMicrochip } css = { tw `md:flex-1 w-full md:w-1/2 md:ml-2 mt-4 md:mt-0` } >
155- { status !== 'offline' ?
156- < canvas id = { 'cpu_chart' } ref = { cpuRef } aria-label = { 'Server CPU Usage Graph' } role = { 'img' } />
157- :
158- < p css = { tw `text-xs text-neutral-400 text-center p-3` } >
159- Server is offline.
160- </ p >
161- }
162- </ TitledGreyBox >
145+ < div css = { tw `w-full sm:w-1/2` } >
146+ < TitledGreyBox title = { 'Memory usage' } icon = { faMemory } css = { tw `mr-0 sm:mr-4` } >
147+ { status !== 'offline' ?
148+ < canvas id = { 'memory_chart' } ref = { memoryRef } aria-label = { 'Server Memory Usage Graph' } role = { 'img' } />
149+ :
150+ < p css = { tw `text-xs text-neutral-400 text-center p-3` } >
151+ Server is offline.
152+ </ p >
153+ }
154+ </ TitledGreyBox >
155+ </ div >
156+ < div css = { tw `w-full sm:w-1/2 mt-4 sm:mt-0` } >
157+ < TitledGreyBox title = { 'CPU usage' } icon = { faMicrochip } css = { tw `ml-0 sm:ml-4` } >
158+ { status !== 'offline' ?
159+ < canvas id = { 'cpu_chart' } ref = { cpuRef } aria-label = { 'Server CPU Usage Graph' } role = { 'img' } />
160+ :
161+ < p css = { tw `text-xs text-neutral-400 text-center p-3` } >
162+ Server is offline.
163+ </ p >
164+ }
165+ </ TitledGreyBox >
166+ </ div >
163167 </ div >
164168 ) ;
165169} ;
You can’t perform that action at this time.
0 commit comments