mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-30 01:17:37 +03:00
Truncate long branch names in commit list item header
This commit is contained in:
parent
4fd8c890c9
commit
915426ea4e
@ -120,6 +120,7 @@
|
||||
onMount(() => {
|
||||
expandFromCache();
|
||||
laneWidth = lscache.get(laneWidthKey + branch.id) ?? $userSettings.defaultLaneWidth;
|
||||
console.log(laneWidth);
|
||||
});
|
||||
|
||||
const selectedOwnership = writable(Ownership.fromBranch(branch));
|
||||
@ -364,10 +365,10 @@
|
||||
class="z-30"
|
||||
on:width={(e) => {
|
||||
laneWidth = e.detail;
|
||||
lscache.set(laneWidthKey + branch.id, e.detail, 7 * 1440); // 7 day ttl
|
||||
lscache.set(laneWidthKey + branch.id, laneWidth, 7 * 1440); // 7 day ttl
|
||||
userSettings.update((s) => ({
|
||||
...s,
|
||||
defaultLaneWidth: e.detail
|
||||
defaultLaneWidth: laneWidth
|
||||
}));
|
||||
return true;
|
||||
}}
|
||||
|
@ -123,7 +123,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
<div class="expander">
|
||||
<Icon name={expanded ? 'chevron-top' : 'chevron-down'} />
|
||||
<Icon name={expanded ? 'chevron-down' : 'chevron-top'} />
|
||||
</div>
|
||||
</button>
|
||||
{#if expanded}
|
||||
@ -225,6 +225,7 @@
|
||||
align-items: center;
|
||||
color: var(--clr-theme-scale-ntrl-0);
|
||||
gap: var(--space-8);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.content-wrapper {
|
||||
display: flex;
|
||||
|
Loading…
Reference in New Issue
Block a user