mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 17:23:19 -05:00
Introduce vertical cards (#12125)
* Introduce vertical cards * Simplify and add a css type * Feedback * Update yarn.lock
This commit is contained in:
@@ -105,14 +105,42 @@ export class SKURecommendationPage extends MigrationWizardPage {
|
||||
|
||||
const rbg = this.view!.modelBuilder.radioCardGroup();
|
||||
rbg.component().cards = [];
|
||||
rbg.component().orientation = azdata.Orientation.Vertical;
|
||||
rbg.component().iconHeight = '30px';
|
||||
rbg.component().iconWidth = '30px';
|
||||
|
||||
products.forEach((product) => {
|
||||
const imagePath = path.resolve(this.migrationStateModel.getExtensionPath(), 'media', product.icon ?? 'ads.svg');
|
||||
|
||||
const descriptions: azdata.RadioCardDescription[] = [
|
||||
{
|
||||
textValue: product.name,
|
||||
linkDisplayValue: 'Learn more',
|
||||
displayLinkCodicon: true,
|
||||
textStyles: {
|
||||
'font-size': '1rem',
|
||||
'font-weight': 550,
|
||||
},
|
||||
linkCodiconStyles: {
|
||||
'font-size': '1em',
|
||||
'color': 'royalblue'
|
||||
}
|
||||
},
|
||||
{
|
||||
textValue: '9 databases will be migrated',
|
||||
linkDisplayValue: 'View/Change',
|
||||
displayLinkCodicon: true,
|
||||
linkCodiconStyles: {
|
||||
'font-size': '1em',
|
||||
'color': 'royalblue'
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
rbg.component().cards.push({
|
||||
id: product.name,
|
||||
icon: imagePath,
|
||||
label: product.name
|
||||
descriptions
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user