Handle margin for icons in list by CSS

save-path-regex
Pat Hartl 2023-11-05 12:59:44 -06:00
parent 16ba48ed6c
commit 25de79eeed
3 changed files with 6 additions and 2 deletions

View File

@ -67,7 +67,7 @@
DefaultActiveFirstOption="false" DefaultActiveFirstOption="false"
EnableSearch> EnableSearch>
<ItemTemplate Context="game"> <ItemTemplate Context="game">
<Image Src="@GetIcon(game)" Height="32" Width="32" Preview="false" Style="margin-right: 8px"></Image> <Image Src="@GetIcon(game)" Height="32" Width="32" Preview="false"></Image>
@game.Title @game.Title
</ItemTemplate> </ItemTemplate>
</Select> </Select>

View File

@ -35,7 +35,7 @@
<Selection Key="@(context.Id.ToString())" /> <Selection Key="@(context.Id.ToString())" />
<PropertyColumn Property="s => s.Name" Sortable Hidden="@(Picker.IsColumnHidden("Name"))" /> <PropertyColumn Property="s => s.Name" Sortable Hidden="@(Picker.IsColumnHidden("Name"))" />
<PropertyColumn Property="s => s.Game" Hidden="@(Picker.IsColumnHidden("Game"))"> <PropertyColumn Property="s => s.Game" Hidden="@(Picker.IsColumnHidden("Game"))">
<Image Src="@GetIcon(context.Game)" Height="32" Width="32" Preview="false" Style="margin-right: 8px"></Image> <Image Src="@GetIcon(context.Game)" Height="32" Width="32" Preview="false"></Image>
@context.Game?.Title @context.Game?.Title
</PropertyColumn> </PropertyColumn>
<PropertyColumn Property="s => s.CreatedOn" Format="MM/dd/yyyy hh:mm tt" Sortable Hidden="@(Picker.IsColumnHidden("Created On"))" /> <PropertyColumn Property="s => s.CreatedOn" Format="MM/dd/yyyy hh:mm tt" Sortable Hidden="@(Picker.IsColumnHidden("Created On"))" />

View File

@ -76,6 +76,10 @@ label.ant-btn-icon-only {
right: 16px; right: 16px;
} }
.ant-select-item-option-content .ant-image {
margin-right: 8px;
}
.file-manager { .file-manager {
background: #fff; background: #fff;
display: flex; display: flex;