We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae91cc commit 2694944Copy full SHA for 2694944
apps/desktop/src/components/CommitDetails.svelte
@@ -35,7 +35,8 @@
35
// Calculate approximately how many characters fit on one line, as a
36
// function of container width as well as zoom level.
37
// TODO: Turn this magic formula into something meaningful.
38
- const maxLength = $derived((messageWidthRem - 2) * 1.95 - (Math.pow(zoom, 2) - 1));
+ const fontFactor = $rewrapCommitMessage ? 2.3 : 2;
39
+ const maxLength = $derived((messageWidthRem - 2) * fontFactor - (Math.pow(zoom, 2) - 1));
40
41
const message = $derived(commit.message);
42
const raw = $derived(splitMessage(message).description);
0 commit comments