Skip to content

Commit d59e5cf

Browse files
committed
better usability: mimimum size for breadcrumbs
1 parent a163d56 commit d59e5cf

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

frontend/src/Head.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function MenuPanel() {
4545
}
4646
})
4747
),
48-
remoteSearch && h('div', {}, 'Searched for: ',remoteSearch),
48+
remoteSearch && h('div', { id:'searched' }, 'Searched for: ',remoteSearch),
4949
showFilter && h('input',{
5050
id: 'filter',
5151
placeholder: 'Filter',

frontend/src/index.scss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ button.toggled {
4444
header {
4545
position: sticky;
4646
top: 0;
47-
padding-bottom: 0.3em;
4847
background: #fff;
48+
padding: .2em;
4949
}
5050

5151
@keyframes spin {
@@ -61,7 +61,11 @@ header {
6161
line-height: 1.6em;
6262

6363
border-top: 1px solid #666;
64-
margin-left: -1px;
64+
margin-right: -0.1em;
65+
/* make small elements easier to tap */
66+
min-width: 1.2em;
67+
text-align: center;
68+
display: inline-block;
6569
}
6670
#folder-stats {
6771
font-size: 90%;
@@ -113,7 +117,7 @@ ul.dir {
113117
}
114118

115119
#menu-panel {
116-
margin: 0 0.1em 0.2em;
120+
margin-bottom: 0.2em;
117121

118122
& button {
119123
margin: 0.1em;
@@ -123,6 +127,9 @@ ul.dir {
123127
margin-left: 0.8em;
124128
}
125129
}
130+
#searched {
131+
margin: .2em;
132+
}
126133

127134
@media (max-width: 50em) {
128135
#menu-bar button:nth-child(1n+2) label { display: none } /* icons only */

0 commit comments

Comments
 (0)