|
39 | 39 | }); |
40 | 40 | </script> |
41 | 41 |
|
42 | | -<div class="stack"> |
43 | | - <div |
44 | | - class="stack__wrapper" |
45 | | - bind:this={resizeStackBranches} |
46 | | - style:width={$stackBranchWidth + 'rem'} |
47 | | - > |
| 42 | +<div class="wrapper"> |
| 43 | + <div class="branches" bind:this={resizeStackBranches} style:width={$stackBranchWidth + 'rem'}> |
48 | 44 | <Resizer |
49 | 45 | viewport={resizeStackBranches} |
50 | 46 | direction="right" |
|
53 | 49 | $stackBranchWidth = value / (16 * $userSettings.zoom); |
54 | 50 | }} |
55 | 51 | /> |
56 | | - <div |
57 | | - class="stack__branches" |
58 | | - bind:this={resizeStackBranches} |
59 | | - style:width={$stackBranchWidth + 'rem'} |
60 | | - > |
61 | | - <ReduxResult result={result.current}> |
62 | | - {#snippet children(result)} |
63 | | - {#if stackId && result.length > 0} |
64 | | - {#each result as branch, i (branch.name)} |
65 | | - {@const first = i === 0} |
66 | | - {@const last = i === result.length - 1} |
67 | | - <Branch {branch} {first} {last} /> |
68 | | - {/each} |
69 | | - {/if} |
70 | | - {/snippet} |
71 | | - </ReduxResult> |
72 | | - </div> |
| 52 | + <ReduxResult result={result.current}> |
| 53 | + {#snippet children(result)} |
| 54 | + {#if stackId && result.length > 0} |
| 55 | + {#each result as branch, i (branch.name)} |
| 56 | + {@const first = i === 0} |
| 57 | + {@const last = i === result.length - 1} |
| 58 | + <Branch {branch} {first} {last} /> |
| 59 | + {/each} |
| 60 | + {/if} |
| 61 | + {/snippet} |
| 62 | + </ReduxResult> |
73 | 63 | </div> |
74 | 64 |
|
75 | | - <div class="stack__branch-content"> |
76 | | - <StackContentIllustration mode={stackContentMode} /> |
77 | | - </div> |
| 65 | + <StackContentIllustration mode={stackContentMode} /> |
78 | 66 | </div> |
79 | 67 |
|
80 | 68 | <style> |
81 | | - .stack__wrapper, |
82 | | - .stack { |
| 69 | + .wrapper { |
83 | 70 | position: relative; |
84 | 71 | height: 100%; |
85 | 72 | display: flex; |
86 | 73 | border-radius: 0 var(--radius-ml) var(--radius-ml); |
87 | 74 | } |
88 | 75 |
|
89 | | - .stack__branches { |
| 76 | + .branches { |
90 | 77 | position: relative; |
91 | 78 | display: flex; |
92 | 79 | width: 22.5rem; |
|
103 | 90 | background-size: 6px 6px; |
104 | 91 | border-right: 1px solid var(--clr-border-2); |
105 | 92 | } |
106 | | -
|
107 | | - .stack__branch-content { |
108 | | - display: flex; |
109 | | - flex: 1; |
110 | | - flex-direction: column; |
111 | | - } |
112 | 93 | </style> |
0 commit comments