File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
apps/desktop/src/components Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { writeClipboard } from ' $lib/backend/clipboard' ;
3
3
import { type Commit , type UpstreamCommit } from ' $lib/branches/v3' ;
4
+ import { rewrapCommitMessage } from ' $lib/config/uiFeatureFlags' ;
4
5
import { SETTINGS , type Settings } from ' $lib/settings/userSettings' ;
5
6
import { UiState } from ' $lib/state/uiState.svelte' ;
6
7
import { TestId } from ' $lib/testing/testIds' ;
86
87
87
88
{#if description }
88
89
<div
89
- class =" text-13 description"
90
+ class =" description"
90
91
class:expanded
92
+ style:--commit-message-font ={$rewrapCommitMessage
93
+ ? ' var(--fontfamily-default)'
94
+ : ' var(--fontfamily-mono)' }
91
95
bind:clientWidth ={messageWidth }
92
96
data-testid ={TestId .CommitDrawerDescription }
93
97
>
97
101
{abbreviated }
98
102
{/if }
99
103
{#if isAbbrev }
100
- <button
101
- onclick ={() => (expanded = ! expanded )}
102
- type =" button"
103
- class =" readmore text-13 text-semibold"
104
- >
104
+ <button onclick ={() => (expanded = ! expanded )} type =" button" class =" readmore text-bold" >
105
105
{#if expanded }
106
106
less
107
107
{:else }
140
140
}
141
141
142
142
.description {
143
+ font-size : 13px ;
143
144
line-height : var (--text-lineheight-body );
144
- font-family : var (--fontfamily-mono );
145
+ font-family : var (--commit-message-font );
145
146
white-space : pre-line ;
146
147
}
147
148
You can’t perform that action at this time.
0 commit comments