|  | 
| 2 | 2 | 	{{if and .CanUseTimetracker (not .Repository.IsArchived)}} | 
| 3 | 3 | 		<div class="divider"></div> | 
| 4 | 4 | 		<div> | 
| 5 |  | -			<div class="ui dropdown full-width jump"> | 
| 6 |  | -				<a class="fixed-text muted"> | 
| 7 |  | -					<div> | 
| 8 |  | -						<strong>{{ctx.Locale.Tr "repo.issues.tracker"}}</strong> | 
| 9 |  | -						{{if $.IsStopwatchRunning}}{{svg "octicon-stopwatch"}}{{end}} | 
| 10 |  | -					</div> | 
| 11 |  | -					{{svg "octicon-gear"}} | 
| 12 |  | -				</a> | 
| 13 |  | -				<div class="menu"> | 
| 14 |  | -					<a class="item issue-set-time-estimate show-modal" data-modal="#issue-time-set-estimate-modal"> | 
| 15 |  | -						{{svg "octicon-pencil"}} {{ctx.Locale.Tr "repo.issues.time_estimate_set"}} | 
| 16 |  | -					</a> | 
| 17 |  | -					<div class="divider"></div> | 
| 18 |  | -					{{if $.IsStopwatchRunning}} | 
| 19 |  | -					<a class="item issue-stop-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/stop"> | 
|  | 5 | +			<div class="flex-text-block"> | 
|  | 6 | +				<strong class="tw-flex-1">{{ctx.Locale.Tr "repo.issues.tracker"}}</strong> | 
|  | 7 | +				<button class="btn interact-fg show-modal" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.time_estimate_set"}}" data-modal="#issue-time-set-estimate-modal"> | 
|  | 8 | +					{{svg "octicon-pencil"}} | 
|  | 9 | +				</button> | 
|  | 10 | +			</div> | 
|  | 11 | +			<div class="flex-text-block tw-justify-between tw-my-2"> | 
|  | 12 | +				<div class="ui buttons tw-flex-1"> | 
|  | 13 | +				{{if $.IsStopwatchRunning}} | 
|  | 14 | +					<button class="ui button tw-flex-1 issue-stop-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/stop"> | 
| 20 | 15 | 						{{svg "octicon-stopwatch"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_stop"}} | 
| 21 |  | -					</a> | 
| 22 |  | -					<a class="item issue-cancel-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/cancel"> | 
| 23 |  | -						{{svg "octicon-trash"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_discard"}} | 
| 24 |  | -					</a> | 
| 25 |  | -					{{else}} | 
| 26 |  | -					<a class="item issue-start-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/start"> | 
|  | 16 | +					</button> | 
|  | 17 | +					<button class="ui icon button tw-flex-0 issue-cancel-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/cancel" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.timetracker_timer_discard"}}"> | 
|  | 18 | +						{{svg "octicon-trash"}} | 
|  | 19 | +					</button> | 
|  | 20 | +				{{else}} | 
|  | 21 | +					<button class="ui button tw-flex-1 issue-start-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/start"> | 
| 27 | 22 | 						{{svg "octicon-stopwatch"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_start"}} | 
| 28 |  | -					</a> | 
| 29 |  | -					<a class="item issue-add-time show-modal" data-modal="#issue-time-manually-add-modal"> | 
| 30 |  | -						{{svg "octicon-plus"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_manually_add"}} | 
| 31 |  | -					</a> | 
| 32 |  | -					{{end}} | 
|  | 23 | +					</button> | 
|  | 24 | +					<button class="ui icon button w-flex-0 issue-add-time show-modal" data-modal="#issue-time-manually-add-modal" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.timetracker_timer_manually_add"}}"> | 
|  | 25 | +						{{svg "octicon-plus"}} | 
|  | 26 | +					</button> | 
|  | 27 | +				{{end}} | 
| 33 | 28 | 				</div> | 
| 34 | 29 | 			</div> | 
| 35 | 30 | 
 | 
|  | 
0 commit comments