Fossil SCM

Minor layout tweaks in /fileedit.

stephan 2020-06-15 00:58 trunk
Commit 5a7243c21ce6dcb03d2294af83e9c5dc8e23d5b240cc93e3ed1495180588db61
--- src/fossil.page.fileedit.js
+++ src/fossil.page.fileedit.js
@@ -418,11 +418,13 @@
418418
D.append(ciLabelWrapper,
419419
btnReload, ciLabel),
420420
selCi,
421421
filesLabel,
422422
selFiles,
423
- btnLoad
423
+ /* Use a wrapper for btnLoad so that the button itself does not
424
+ stretch to fill the parent width: */
425
+ D.append(D.addClass(D.div(), 'flex-shrink'), btnLoad)
424426
);
425427
this.loadLeaves();
426428
selCi.addEventListener(
427429
'change', (e)=>this.loadFiles(e.target.value), false
428430
);
429431
--- src/fossil.page.fileedit.js
+++ src/fossil.page.fileedit.js
@@ -418,11 +418,13 @@
418 D.append(ciLabelWrapper,
419 btnReload, ciLabel),
420 selCi,
421 filesLabel,
422 selFiles,
423 btnLoad
 
 
424 );
425 this.loadLeaves();
426 selCi.addEventListener(
427 'change', (e)=>this.loadFiles(e.target.value), false
428 );
429
--- src/fossil.page.fileedit.js
+++ src/fossil.page.fileedit.js
@@ -418,11 +418,13 @@
418 D.append(ciLabelWrapper,
419 btnReload, ciLabel),
420 selCi,
421 filesLabel,
422 selFiles,
423 /* Use a wrapper for btnLoad so that the button itself does not
424 stretch to fill the parent width: */
425 D.append(D.addClass(D.div(), 'flex-shrink'), btnLoad)
426 );
427 this.loadLeaves();
428 selCi.addEventListener(
429 'change', (e)=>this.loadFiles(e.target.value), false
430 );
431
--- src/style.fileedit.css
+++ src/style.fileedit.css
@@ -11,10 +11,11 @@
1111
}
1212
body.fileedit textarea {
1313
font-family: monospace;
1414
flex: 10 1 auto;
1515
height: initial/*undo damage from some skins*/;
16
+ max-width: initial /* default.css pins it at 95% */;
1617
}
1718
body.fileedit textarea:focus,
1819
body.fileedit input:focus{
1920
/* The sudden appearance of a border (as in the Ardoise skin)
2021
shifts the layout in unsightly ways */
@@ -147,11 +148,11 @@
147148
flex-direction: row;
148149
flex-wrap: wrap;
149150
align-items: baseline;
150151
}
151152
body.fileedit #fileedit-stash-selector select {
152
- margin: 0;
153
+ margin: 0 1em;
153154
height: initial;
154155
font-family: monospace;
155156
flex: 10 1 auto;
156157
}
157158
body.fileedit .tab-container > .tabs > .tab-panel {
158159
--- src/style.fileedit.css
+++ src/style.fileedit.css
@@ -11,10 +11,11 @@
11 }
12 body.fileedit textarea {
13 font-family: monospace;
14 flex: 10 1 auto;
15 height: initial/*undo damage from some skins*/;
 
16 }
17 body.fileedit textarea:focus,
18 body.fileedit input:focus{
19 /* The sudden appearance of a border (as in the Ardoise skin)
20 shifts the layout in unsightly ways */
@@ -147,11 +148,11 @@
147 flex-direction: row;
148 flex-wrap: wrap;
149 align-items: baseline;
150 }
151 body.fileedit #fileedit-stash-selector select {
152 margin: 0;
153 height: initial;
154 font-family: monospace;
155 flex: 10 1 auto;
156 }
157 body.fileedit .tab-container > .tabs > .tab-panel {
158
--- src/style.fileedit.css
+++ src/style.fileedit.css
@@ -11,10 +11,11 @@
11 }
12 body.fileedit textarea {
13 font-family: monospace;
14 flex: 10 1 auto;
15 height: initial/*undo damage from some skins*/;
16 max-width: initial /* default.css pins it at 95% */;
17 }
18 body.fileedit textarea:focus,
19 body.fileedit input:focus{
20 /* The sudden appearance of a border (as in the Ardoise skin)
21 shifts the layout in unsightly ways */
@@ -147,11 +148,11 @@
148 flex-direction: row;
149 flex-wrap: wrap;
150 align-items: baseline;
151 }
152 body.fileedit #fileedit-stash-selector select {
153 margin: 0 1em;
154 height: initial;
155 font-family: monospace;
156 flex: 10 1 auto;
157 }
158 body.fileedit .tab-container > .tabs > .tab-panel {
159

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button