mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
Fix flex container and card layout issues (#1195)
* Fix main layout issues and add box around card - Need to improve box size as it's taking too much space * Fix UI issues with flexContainer and cards * Simplify card HTML
This commit is contained in:
@@ -47,11 +47,16 @@ export default class MainController implements vscode.Disposable {
|
||||
sqlops.dashboard.registerModelViewProvider('sqlservices', async (view) => {
|
||||
let flexModel = view.modelBuilder.flexContainer()
|
||||
.withLayout({
|
||||
flexFlow: 'row'
|
||||
flexFlow: 'row',
|
||||
alignItems: 'center'
|
||||
}).withItems([
|
||||
// 1st child panel with N cards
|
||||
view.modelBuilder.flexContainer()
|
||||
.withLayout({ flexFlow: 'column' })
|
||||
.withLayout({
|
||||
flexFlow: 'column',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center'
|
||||
})
|
||||
.withItems([
|
||||
view.modelBuilder.card()
|
||||
.withProperties<sqlops.CardProperties>({
|
||||
@@ -73,7 +78,7 @@ export default class MainController implements vscode.Disposable {
|
||||
})
|
||||
.component()
|
||||
]).component()
|
||||
], { flex: '0 1 50%' })
|
||||
], { flex: '1 1 50%' })
|
||||
.component();
|
||||
await view.initializeModel(flexModel);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user