File tree Expand file tree Collapse file tree 6 files changed +23
-16
lines changed Expand file tree Collapse file tree 6 files changed +23
-16
lines changed Original file line number Diff line number Diff line change 45
45
>
46
46
<div
47
47
class =" tree-item-self is-clickable nav-file-title"
48
+ data-path ={diff .vault_path }
48
49
aria-label-position ={side }
49
50
aria-label ={diff .vault_path }
50
51
>
71
72
72
73
<style lang =" scss" >
73
74
main {
74
- .nav-file-title-content {
75
- display : flex ;
75
+ .nav-file-title {
76
76
align-items : center ;
77
77
}
78
78
}
Original file line number Diff line number Diff line change 84
84
>
85
85
<div
86
86
class =" tree-item-self is-clickable nav-file-title"
87
+ data-path ={change .vault_path }
87
88
aria-label-position ={side }
88
89
aria-label ={change .vault_path }
89
90
>
131
132
132
133
<style lang =" scss" >
133
134
main {
134
- .nav-file-title-content {
135
- display : flex ;
135
+ .nav-file-title {
136
136
align-items : center ;
137
137
}
138
138
}
Original file line number Diff line number Diff line change 35
35
<!-- svelte-ignore a11y-unknown-aria-attribute -->
36
36
<div
37
37
class =" tree-item-self is-clickable nav-file-title"
38
+ data-path ={change .vault_path }
38
39
aria-label-position ={side }
39
40
aria-label ={change .vault_path }
40
41
>
51
52
52
53
<style lang =" scss" >
53
54
main {
54
- .nav-file-title-content {
55
- display : flex ;
55
+ .nav-file-title {
56
56
align-items : center ;
57
57
}
58
58
}
Original file line number Diff line number Diff line change 60
60
>
61
61
<div
62
62
class =" tree-item-self is-clickable nav-file-title"
63
+ data-path ={change .vault_path }
63
64
aria-label-position ={side }
64
65
aria-label ={change .vault_path }
65
66
>
92
93
93
94
<style lang =" scss" >
94
95
main {
95
- .nav-file-title-content {
96
- display : flex ;
96
+ .nav-file-title {
97
97
align-items : center ;
98
98
}
99
99
}
Original file line number Diff line number Diff line change 211
211
212
212
<style lang =" scss" >
213
213
main {
214
- .nav-folder-title-content {
215
- display : flex ;
214
+ .nav-folder-title {
216
215
align-items : center ;
217
216
}
218
217
}
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { Platform , setIcon } from " obsidian" ;
3
+ import { SOURCE_CONTROL_VIEW_CONFIG } from " src/constants" ;
3
4
import ObsidianGit from " src/main" ;
4
5
import {
5
6
FileStatusResult ,
98
99
const unPushedCommits = await plugin .gitManager .getUnpushedCommits ();
99
100
100
101
buttons .forEach ((btn ) => {
101
- if (Platform .isMobile ){
102
+ if (Platform .isMobile ) {
102
103
btn .removeClass (" button-border" );
103
104
if (btn .id == " push" && unPushedCommits > 0 ) {
104
105
btn .addClass (" button-border" );
105
106
}
106
- }else {
107
- btn .firstElementChild ?.removeAttribute (" color" )
107
+ } else {
108
+ btn .firstElementChild ?.removeAttribute (" color" );
108
109
if (btn .id == " push" && unPushedCommits > 0 ) {
109
- btn .firstElementChild ?.setAttr (" color" ," var(--text-accent)" )
110
+ btn .firstElementChild ?.setAttr (
111
+ " color" ,
112
+ " var(--text-accent)"
113
+ );
110
114
}
111
115
}
112
116
});
217
221
$ : rows = (commitMessage .match (/ \n / g ) || []).length + 1 || 1 ;
218
222
</script >
219
223
220
- <main >
224
+ <main data-type ={ SOURCE_CONTROL_VIEW_CONFIG . type } >
221
225
<div class =" nav-header" >
222
226
<div class =" nav-buttons-container" >
223
227
<div
403
407
{/if }
404
408
</div >
405
409
<div
406
- class =" changes nav-folder"
410
+ class =" changes tree-item nav-folder"
407
411
class:is-collapsed ={! changesOpen }
408
412
>
409
413
<div
619
623
}
620
624
}
621
625
626
+ .nav-folder-title {
627
+ align-items : center ;
628
+ }
629
+
622
630
.git-commit-msg-clear-button {
623
631
position : absolute ;
624
632
background : transparent ;
You can’t perform that action at this time.
0 commit comments