mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 01:25:38 -05:00
Standardize font styling on sql migration extension (#16968)
This commit is contained in:
@@ -16,6 +16,7 @@ import { SummaryPage } from './summaryPage';
|
||||
import { MigrationModePage } from './migrationModePage';
|
||||
import { DatabaseSelectorPage } from './databaseSelectorPage';
|
||||
import { sendSqlMigrationActionEvent, TelemetryAction, TelemetryViews } from '../telemtery';
|
||||
import * as styles from '../constants/styles';
|
||||
|
||||
export const WIZARD_INPUT_COMPONENT_WIDTH = '600px';
|
||||
export class WizardController {
|
||||
@@ -157,44 +158,36 @@ export function createInformationRow(view: azdata.ModelView, label: string, valu
|
||||
[
|
||||
createLabelTextComponent(view, label,
|
||||
{
|
||||
'margin': '0px',
|
||||
...styles.BODY_CSS,
|
||||
'margin': '4px 0px',
|
||||
'width': '300px',
|
||||
'font-size': '13px',
|
||||
'line-height': '24px'
|
||||
}
|
||||
),
|
||||
createTextCompononent(view, value,
|
||||
createTextComponent(view, value,
|
||||
{
|
||||
'margin': '0px',
|
||||
...styles.BODY_CSS,
|
||||
'margin': '4px 0px',
|
||||
'width': '300px',
|
||||
'font-size': '13px',
|
||||
'line-height': '24px'
|
||||
}
|
||||
)
|
||||
],
|
||||
{
|
||||
CSSStyles: {
|
||||
'margin-right': '5px'
|
||||
}
|
||||
})
|
||||
.component();
|
||||
]).component();
|
||||
}
|
||||
|
||||
export async function createHeadingTextComponent(view: azdata.ModelView, value: string): Promise<azdata.TextComponent> {
|
||||
const component = createTextCompononent(view, value);
|
||||
export async function createHeadingTextComponent(view: azdata.ModelView, value: string, firstElement: boolean = false): Promise<azdata.TextComponent> {
|
||||
const component = createTextComponent(view, value);
|
||||
await component.updateCssStyles({
|
||||
'font-size': '13px',
|
||||
'font-weight': 'bold',
|
||||
...styles.LABEL_CSS,
|
||||
'margin-top': firstElement ? '0' : '24px'
|
||||
});
|
||||
return component;
|
||||
}
|
||||
|
||||
export function createLabelTextComponent(view: azdata.ModelView, value: string, styles: { [key: string]: string; } = { 'width': '300px' }): azdata.TextComponent {
|
||||
const component = createTextCompononent(view, value, styles);
|
||||
const component = createTextComponent(view, value, styles);
|
||||
return component;
|
||||
}
|
||||
|
||||
export function createTextCompononent(view: azdata.ModelView, value: string, styles: { [key: string]: string; } = { 'width': '300px' }): azdata.TextComponent {
|
||||
export function createTextComponent(view: azdata.ModelView, value: string, styles: { [key: string]: string; } = { 'width': '300px' }): azdata.TextComponent {
|
||||
return view.modelBuilder.text().withProps({
|
||||
value: value,
|
||||
CSSStyles: styles
|
||||
|
||||
Reference in New Issue
Block a user