Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 92f1b30

Browse files
author
haad
committed
Fix layout on small screens
1 parent 2880a4d commit 92f1b30

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> UI for managing [OrbitDB](https://github.com/orbitdb/orbit-db) databases.
44
5-
**Run the [Control Center](https://gateway.pinata.cloud/ipfs/QmQjGSJ3MJho7CTySsyno5qi6J8GQCaVGPLq6Dn73gDBDH) in your browser.**
5+
**Run the [Control Center](https://ipfs.io/ipfs/QmbUP5MPCYnFcouSmB5oRj91jNSHYGGbyqvbPUvNoxFomo) in your browser.**
66

77
<img width="80%" src="https://raw.githubusercontent.com/haadcode/orbit-db-control-center/master/screenshot1.png"/>
88

src/components/Header.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Header () {
3131
<Pane
3232
display='flex'
3333
flex='1 1 60%'
34-
paddingX={majorScale(6)}
34+
paddingLeft={majorScale(6)}
3535
paddingY={majorScale(1)}
3636
borderBottom='default'
3737
>
@@ -51,9 +51,14 @@ function Header () {
5151
flex='1 1 40%'
5252
alignItems='center'
5353
justifyContent='center'
54-
paddingX={majorScale(6)}
54+
paddingRight={majorScale(6)}
5555
>
56-
<SearchInput placeholder='Search...' width='100%' onKeyUp={handleKeyUp} />
56+
<SearchInput
57+
placeholder='Search...'
58+
height={24}
59+
width='100%'
60+
onKeyUp={handleKeyUp}
61+
/>
5762
</Pane>
5863
</Pane>
5964
</Pane>

src/views/Databases.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,18 @@ function DatabasesView () {
105105
Open
106106
</Button>
107107
</Pane>
108-
<Pane display='flex' justifyContent='center'>
108+
<Pane display='flex' justifyContent='center' overflow='auto'>
109109
<CreateDialog onCreate={createDB}/>
110110
<AddDialog onAdd={addDB}/>
111111
<Pane
112112
flex='1'
113+
overflow='auto'
113114
elevation={1}
114115
background='white'
115116
marginX={majorScale(6)}
116117
>
117118
{!appState.loading.programs
118-
? (<ProgramList
119+
? (<ProgramList
119120
programs={appState.programs}
120121
onRemove={handleRemoveDatabase}
121122
/>)

0 commit comments

Comments
 (0)