File tree 2 files changed +6
-10
lines changed
packages/block-editor/src/components/list-view
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import clsx from 'clsx';
9
9
import {
10
10
__experimentalHStack as HStack ,
11
11
__experimentalTruncate as Truncate ,
12
+ privateApis as componentsPrivateApis ,
12
13
} from '@wordpress/components' ;
13
14
import { forwardRef } from '@wordpress/element' ;
14
15
import { Icon , lockSmall as lock , pinSmall } from '@wordpress/icons' ;
@@ -25,6 +26,8 @@ import ListViewExpander from './expander';
25
26
import { useBlockLock } from '../block-lock' ;
26
27
import useListViewImages from './use-list-view-images' ;
27
28
import { store as blockEditorStore } from '../../store' ;
29
+ import { unlock } from '../../lock-unlock' ;
30
+ const { Badge } = unlock ( componentsPrivateApis ) ;
28
31
29
32
function ListViewBlockSelectButton (
30
33
{
@@ -117,12 +120,9 @@ function ListViewBlockSelectButton(
117
120
</ span >
118
121
{ blockInformation ?. anchor && (
119
122
< span className = "block-editor-list-view-block-select-button__anchor-wrapper" >
120
- < Truncate
121
- className = "block-editor-list-view-block-select-button__anchor"
122
- ellipsizeMode = "auto"
123
- >
123
+ < Badge className = "block-editor-list-view-block-select-button__anchor" >
124
124
{ blockInformation . anchor }
125
- </ Truncate >
125
+ </ Badge >
126
126
</ span >
127
127
) }
128
128
{ isSticky && (
Original file line number Diff line number Diff line change 408
408
position : absolute ;
409
409
right : 0 ;
410
410
transform : translateY (-50% );
411
- background : rgba ($black , 0.1 );
412
- border-radius : $radius-x-small ;
413
- padding : 2px 6px ;
414
- max-width : 100% ;
415
- box-sizing : border-box ;
416
411
}
417
412
418
413
& .is-selected .block-editor-list-view-block-select-button__anchor {
419
414
background : rgba ($black , 0.3 );
415
+ color : $white ;
420
416
}
421
417
422
418
.block-editor-list-view-block-select-button__lock ,
You can’t perform that action at this time.
0 commit comments