Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit a3ed347

Browse files
authored
Left aligning the text in the "Add Component" and "Add Entity" menus (#10946)
1 parent 8cf614b commit a3ed347

File tree

1 file changed

+4
-4
lines changed
  • packages/ui/src/components/editor/panels/Properties/elementList

1 file changed

+4
-4
lines changed

β€Žpackages/ui/src/components/editor/panels/Properties/elementList/index.tsxβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ const ComponentListItem = ({ item, onSelect }: { item: Component; onSelect: () =
7878
startIcon={<Icon className="h-4 w-4 text-[#B2B5BD]" />}
7979
>
8080
<div className="ml-4 w-full">
81-
<Text className="mb-1 block text-center text-sm text-[#B2B5BD]">
81+
<Text className="mb-1 block text-left text-sm text-[#B2B5BD]">
8282
{startCase(jsonName.replace('-', ' ').toLowerCase())}
8383
</Text>
84-
<Text component="p" className="block text-center text-xs text-theme-secondary">
84+
<Text component="p" className="block text-left text-xs text-theme-secondary">
8585
{t(`editor:layout.assetGrid.component-detail.${jsonName}`, '')}
8686
</Text>
8787
</div>
@@ -107,8 +107,8 @@ const PrefabListItem = ({ item, onSelect }: { item: PrefabShelfItem; onSelect: (
107107
startIcon={<IoMdAddCircle className="h-4 w-4 text-[#B2B5BD]" />}
108108
>
109109
<div className="ml-4 w-full">
110-
<Text className="mb-1 block text-center text-sm text-[#B2B5BD]">{item.name}</Text>
111-
<Text component="p" className="block text-center text-xs text-theme-secondary">
110+
<Text className="mb-1 block text-left text-sm text-[#B2B5BD]">{item.name}</Text>
111+
<Text component="p" className="block text-left text-xs text-theme-secondary">
112112
{item.detail}
113113
</Text>
114114
</div>

0 commit comments

Comments
Β (0)