File tree Expand file tree Collapse file tree 6 files changed +108
-54
lines changed Expand file tree Collapse file tree 6 files changed +108
-54
lines changed Original file line number Diff line number Diff line change 45
45
" transclude" ,
46
46
" transcludeinline" ,
47
47
" unixtime" ,
48
+ " wikify" ,
48
49
" yaisog"
49
50
]
50
51
}
Original file line number Diff line number Diff line change
1
+ tags: $:/tags/Stylesheet
2
+ title: $:/plugins/mabuqian/TaskHub/styles/TH-modal-css
3
+
4
+ .TH-modal-css .tc-modal,
5
+ .TH-modal-css .tc-modal-header,
6
+ .TH-modal-css .tc-modal-body,
7
+ .TH-modal-css .tc-modal-footer {
8
+ border: none;
9
+ background-color: #FAFAFA;
10
+ }.TH-modal-css .tc-modal-header {
11
+ border-radius: 10px 10px 0 0;
12
+ }.TH-modal-css .tc-modal {
13
+ border-radius: 10px;
14
+ }.TH-modal-css .tc-modal-footer {
15
+ border-radius: 0 0 10px 10px;
16
+ }@media (max-width: 500px) {
17
+ .TH-modal-css .tc-modal {
18
+ width: 95% !important;
19
+ }
20
+ }.TH-modal-css .tc-modal-backdrop {
21
+ cursor: pointer;
22
+ }
23
+ .TH-modal-css .tc-modal {
24
+ width: 85vw !important;
25
+ height: 75vh;
26
+ top: 45% !important;
27
+ bottom: 20%;
28
+ max-height: 80vh;
29
+ border-radius: 10px;
30
+ }.TH-modal-css .tc-modal-footer {
31
+ display: none;
32
+ }@media (min-width: 55em) {
33
+ .TH-modal-css .tc-modal-body {
34
+ overflow-y: auto;
35
+ max-height: 75vh;
36
+ }
37
+ }
Original file line number Diff line number Diff line change
1
+ tags: $:/tags/Stylesheet
2
+ title: $:/plugins/mabuqian/TaskHub/styles/TH-nice-button-group
3
+
4
+ .TH-nice-button-group {
5
+ position: fixed;
6
+ display: flex; /* 使用flexbox布局 */
7
+ justify-content: space-between; /* 在空间中均匀分布 */
8
+ width: 80vw;
9
+ top: 7%;
10
+ }
11
+ .TH-nice-button {
12
+ cursor: pointer;
13
+ padding: 10px;
14
+ border: 2px solid #ccc;
15
+ border-radius: 5px;
16
+ text-align: center; /* 文本居中 */
17
+ flex: 1; /* 每个选项占据相等的空间 */
18
+ margin: 0 5px; /* 选项之间的间距 */
19
+ display: inline-block;
20
+ background: white; /* 默认背景颜色 */
21
+ color: black;
22
+ border: none;
23
+ font-size: 16px;
24
+ }
25
+ .TH-nice-button-content {
26
+ margin-top: 1cm;
27
+ overflow: auto;
28
+ height: 400px;
29
+ }
Original file line number Diff line number Diff line change
1
+ description: Show TaskHub dashboard
2
+ tags: $:/tags/PageControls
3
+ title: $:/plugins/mabuqian/TaskHub/ui/buttons/Dashboard
4
+
5
+ \procedure lingo-base() $:/language/TaskHub/
6
+
7
+ <$button class=<<tv-config-toolbar-class>>>
8
+ <$action-sendmessage $message="tm-modal" $param="$:/plugins/mabuqian/TaskHub/ui/dashboard/Dashboard/param" />
9
+ <%if [{$:/state/TaskHub/projects-and-schedule}length[]compare:number:lteq[1]] %>
10
+ <$action-setfield $tiddler="$:/state/TaskHub/projects-and-schedule" text={{$:/config/TaskHub/DefaultDashboardTab}} />
11
+ <%endif%>
12
+ <%if [<tv-config-toolbar-icons>match[yes]] %>
13
+ {{$:/plugins/mabuqian/TaskHub/images/calendar}}
14
+ <%endif%>
15
+ <%if [<tv-config-toolbar-text>match[yes]] %>
16
+ <span class="tc-btn-text"><<lingo TodaysTodos>></span>
17
+ <%endif%>
18
+ </$button>
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ title: $:/plugins/mabuqian/TaskHub/ui/dashboard/Dashboard/param
2
+ class: TH-modal-css tc-modal-centered
3
+ code-body: yes
4
+ subtitle: <div class="TH-right-aligned"><$link to="$:/plugins/mabuqian/TaskHub/doc/Help">{{$:/plugins/mabuqian/TaskHub/images/info}} <<lingo Help>></$link></div>
5
+ mask-closable: yes
6
+
7
+ <$let dashboardValue={{{ [[$:/state/TaskHub/projects-and-schedule]get[text]else{$:/config/TaskHub/DefaultDashboardTab}] }}} >
8
+ <div class="TH-nice-button-group" >
9
+ <$list filter="[all[tiddlers+shadows]tag[$:/plugins/mabuqian/TaskHub/tags/dashboard]sortby{$:/plugins/mabuqian/TaskHub/tags/dashboard!!list}]" variable="thisTitle">
10
+ <$button class="TH-nice-button">
11
+ <$action-setfield $tiddler="$:/state/TaskHub/projects-and-schedule" text=<<thisTitle>>/>
12
+ <%if [<thisTitle>has[caption]] %>
13
+ <$transclude $tiddler=<<thisTitle>> $field="caption"/>
14
+ <%else%>
15
+ <<thisTitle>>
16
+ <%endif%>
17
+ </$button>
18
+ </$list>
19
+ </div>
20
+ <div class="TH-nice-button-content" >
21
+ <$transclude tiddler=<<dashboardValue>> mode="block"/>
22
+ </div>
23
+ </$let>
You can’t perform that action at this time.
0 commit comments