@@ -207,12 +207,13 @@ function DiffFileRow({
207207 { showStage && (
208208 < button
209209 type = "button"
210- className = "diff-row-action diff-row-action--stage"
210+ className = "diff-row-action diff-row-action--stage ds-tooltip-trigger "
211211 onClick = { ( event ) => {
212212 event . stopPropagation ( ) ;
213213 void onStageFile ?.( file . path ) ;
214214 } }
215215 data-tooltip = "Stage Changes"
216+ data-tooltip-align = "end"
216217 aria-label = "Stage file"
217218 >
218219 < Plus size = { 12 } aria-hidden />
@@ -221,12 +222,13 @@ function DiffFileRow({
221222 { showUnstage && (
222223 < button
223224 type = "button"
224- className = "diff-row-action diff-row-action--unstage"
225+ className = "diff-row-action diff-row-action--unstage ds-tooltip-trigger "
225226 onClick = { ( event ) => {
226227 event . stopPropagation ( ) ;
227228 void onUnstageFile ?.( file . path ) ;
228229 } }
229230 data-tooltip = "Unstage Changes"
231+ data-tooltip-align = "end"
230232 aria-label = "Unstage file"
231233 >
232234 < Minus size = { 12 } aria-hidden />
@@ -235,12 +237,13 @@ function DiffFileRow({
235237 { showDiscard && (
236238 < button
237239 type = "button"
238- className = "diff-row-action diff-row-action--discard"
240+ className = "diff-row-action diff-row-action--discard ds-tooltip-trigger "
239241 onClick = { ( event ) => {
240242 event . stopPropagation ( ) ;
241243 void onDiscardFile ?.( file . path ) ;
242244 } }
243245 data-tooltip = "Discard Changes"
246+ data-tooltip-align = "end"
244247 aria-label = "Discard changes"
245248 >
246249 < RotateCcw size = { 12 } aria-hidden />
@@ -330,12 +333,13 @@ export function DiffSection({
330333 { canApplyWorktree && (
331334 < button
332335 type = "button"
333- className = "diff-row-action diff-row-action--apply"
336+ className = "diff-row-action diff-row-action--apply ds-tooltip-trigger "
334337 onClick = { ( ) => {
335338 void onApplyWorktreeChanges ?.( ) ;
336339 } }
337340 disabled = { worktreeApplyLoading || worktreeApplySuccess }
338341 data-tooltip = { worktreeApplyTitle ?? "Apply changes to parent workspace" }
342+ data-tooltip-align = "end"
339343 aria-label = "Apply worktree changes"
340344 >
341345 < WorktreeApplyIcon success = { worktreeApplySuccess } />
@@ -344,11 +348,12 @@ export function DiffSection({
344348 { canReviewUncommitted && (
345349 < button
346350 type = "button"
347- className = "diff-row-action diff-row-action--review"
351+ className = "diff-row-action diff-row-action--review ds-tooltip-trigger "
348352 onClick = { ( ) => {
349353 void onReviewUncommittedChanges ?.( ) ;
350354 } }
351355 data-tooltip = "Review Uncommitted Changes"
356+ data-tooltip-align = "end"
352357 aria-label = "Review uncommitted changes"
353358 >
354359 < MagicSparkleIcon size = { 12 } />
@@ -357,7 +362,7 @@ export function DiffSection({
357362 { canStageAll && (
358363 < button
359364 type = "button"
360- className = "diff-row-action diff-row-action--stage"
365+ className = "diff-row-action diff-row-action--stage ds-tooltip-trigger "
361366 onClick = { ( ) => {
362367 if ( onStageAllChanges ) {
363368 void onStageAllChanges ( ) ;
@@ -370,6 +375,7 @@ export function DiffSection({
370375 } ) ( ) ;
371376 } }
372377 data-tooltip = "Stage All Changes"
378+ data-tooltip-align = "end"
373379 aria-label = "Stage all changes"
374380 >
375381 < Plus size = { 12 } aria-hidden />
@@ -378,7 +384,7 @@ export function DiffSection({
378384 { canUnstageAll && (
379385 < button
380386 type = "button"
381- className = "diff-row-action diff-row-action--unstage"
387+ className = "diff-row-action diff-row-action--unstage ds-tooltip-trigger "
382388 onClick = { ( ) => {
383389 void ( async ( ) => {
384390 for ( const path of filePaths ) {
@@ -387,6 +393,7 @@ export function DiffSection({
387393 } ) ( ) ;
388394 } }
389395 data-tooltip = "Unstage All Changes"
396+ data-tooltip-align = "end"
390397 aria-label = "Unstage all changes"
391398 >
392399 < Minus size = { 12 } aria-hidden />
@@ -395,11 +402,12 @@ export function DiffSection({
395402 { canDiscardAll && (
396403 < button
397404 type = "button"
398- className = "diff-row-action diff-row-action--discard"
405+ className = "diff-row-action diff-row-action--discard ds-tooltip-trigger "
399406 onClick = { ( ) => {
400407 void onDiscardFiles ?.( filePaths ) ;
401408 } }
402409 data-tooltip = "Discard All Changes"
410+ data-tooltip-align = "end"
403411 aria-label = "Discard all changes"
404412 >
405413 < RotateCcw size = { 12 } aria-hidden />
0 commit comments