mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-15 02:48:30 -05:00
Standardize font styling on sql migration extension (#16968)
This commit is contained in:
@@ -9,6 +9,7 @@ import { MigrationStateModel, MigrationTargetType } from '../../models/stateMach
|
||||
import * as constants from '../../constants/strings';
|
||||
import { debounce } from '../../api/utils';
|
||||
import { IconPath, IconPathHelper } from '../../constants/iconPathHelper';
|
||||
import * as styles from '../../constants/styles';
|
||||
|
||||
const styleLeft: azdata.CssStyles = {
|
||||
'border': 'none',
|
||||
@@ -135,8 +136,7 @@ export class SqlDatabaseTree {
|
||||
private createDatabaseCount(): azdata.TextComponent {
|
||||
this._databaseCount = this._view.modelBuilder.text().withProps({
|
||||
CSSStyles: {
|
||||
'font-size': '11px',
|
||||
'font-weight': 'bold',
|
||||
...styles.BOLD_NOTE_CSS,
|
||||
'margin': '0px 15px 0px 15px'
|
||||
},
|
||||
value: constants.DATABASES(0, this._model._databaseAssessment.length)
|
||||
@@ -392,20 +392,14 @@ export class SqlDatabaseTree {
|
||||
message = this._view.modelBuilder.text().withProps({
|
||||
value: constants.NO_ISSUES_FOUND_VM,
|
||||
CSSStyles: {
|
||||
'font-size': '14px',
|
||||
'width': '100%',
|
||||
'margin': '0',
|
||||
'text-align': 'left'
|
||||
...styles.BODY_CSS
|
||||
}
|
||||
}).component();
|
||||
} else {
|
||||
message = this._view.modelBuilder.text().withProps({
|
||||
value: constants.NO_ISSUES_FOUND_MI,
|
||||
CSSStyles: {
|
||||
'font-size': '14px',
|
||||
'width': '100%',
|
||||
'margin': '0',
|
||||
'text-align': 'left'
|
||||
...styles.BODY_CSS
|
||||
}
|
||||
}).component();
|
||||
}
|
||||
@@ -413,8 +407,7 @@ export class SqlDatabaseTree {
|
||||
|
||||
this._noIssuesContainer = this._view.modelBuilder.flexContainer().withItems([message]).withProps({
|
||||
CSSStyles: {
|
||||
'margin-left': '24px',
|
||||
'margin-top': '20px',
|
||||
'margin-top': '8px',
|
||||
'display': 'none'
|
||||
}
|
||||
}).component();
|
||||
@@ -426,7 +419,7 @@ export class SqlDatabaseTree {
|
||||
const message = this._view.modelBuilder.text().withProps({
|
||||
value: constants.SELECT_DB_PROMPT,
|
||||
CSSStyles: {
|
||||
'font-size': '14px',
|
||||
...styles.BODY_CSS,
|
||||
'width': '400px',
|
||||
'margin': '10px 0px 0px 0px',
|
||||
'text-align': 'left'
|
||||
@@ -479,10 +472,9 @@ export class SqlDatabaseTree {
|
||||
const impactedObjectsTitle = this._view.modelBuilder.text().withProps({
|
||||
value: constants.IMPACTED_OBJECTS,
|
||||
CSSStyles: {
|
||||
'font-size': '13px',
|
||||
...styles.LIGHT_LABEL_CSS,
|
||||
'width': '280px',
|
||||
'margin': '10px 0px 0px 0px',
|
||||
'font-weight': 'bold'
|
||||
}
|
||||
}).component();
|
||||
|
||||
@@ -539,17 +531,13 @@ export class SqlDatabaseTree {
|
||||
const objectDetailsTitle = this._view.modelBuilder.text().withProps({
|
||||
value: constants.OBJECT_DETAILS,
|
||||
CSSStyles: {
|
||||
'font-size': '13px',
|
||||
'line-size': '18px',
|
||||
...styles.LIGHT_LABEL_CSS,
|
||||
'margin': '12px 0px 0px 0px',
|
||||
'font-weight': 'bold'
|
||||
}
|
||||
}).component();
|
||||
const objectDescriptionStyle = {
|
||||
'font-size': '12px',
|
||||
'line-size': '18px',
|
||||
...styles.BODY_CSS,
|
||||
'margin': '5px 0px 0px 0px',
|
||||
'text-align': 'justify',
|
||||
'word-wrap': 'break-word'
|
||||
};
|
||||
this._objectDetailsType = this._view.modelBuilder.text().withProps({
|
||||
@@ -575,22 +563,19 @@ export class SqlDatabaseTree {
|
||||
}
|
||||
|
||||
private createDescription(): azdata.FlexContainer {
|
||||
const labelStyle = {
|
||||
'font-size': '13px',
|
||||
const LABEL_CSS = {
|
||||
...styles.LIGHT_LABEL_CSS,
|
||||
'width': '200px',
|
||||
'font-weight': 'bold',
|
||||
'margin': '10px 35px 0px 0px'
|
||||
'margin': '12px 0 0'
|
||||
};
|
||||
const textStyle = {
|
||||
'font-size': '12px',
|
||||
...styles.BODY_CSS,
|
||||
'width': '200px',
|
||||
'margin': '3px 35px 0px 0px',
|
||||
'text-align': 'justify',
|
||||
'word-wrap': 'break-word'
|
||||
};
|
||||
const descriptionTitle = this._view.modelBuilder.text().withProps({
|
||||
value: constants.DESCRIPTION,
|
||||
CSSStyles: labelStyle
|
||||
CSSStyles: LABEL_CSS
|
||||
}).component();
|
||||
this._descriptionText = this._view.modelBuilder.text().withProps({
|
||||
CSSStyles: textStyle
|
||||
@@ -598,14 +583,14 @@ export class SqlDatabaseTree {
|
||||
|
||||
const recommendationTitle = this._view.modelBuilder.text().withProps({
|
||||
value: constants.RECOMMENDATION,
|
||||
CSSStyles: labelStyle
|
||||
CSSStyles: LABEL_CSS
|
||||
}).component();
|
||||
this._recommendationText = this._view.modelBuilder.text().withProps({
|
||||
CSSStyles: textStyle
|
||||
}).component();
|
||||
const moreInfo = this._view.modelBuilder.text().withProps({
|
||||
value: constants.MORE_INFO,
|
||||
CSSStyles: labelStyle
|
||||
CSSStyles: LABEL_CSS
|
||||
}).component();
|
||||
this._moreInfo = this._view.modelBuilder.hyperlink().withProps({
|
||||
label: '',
|
||||
@@ -626,11 +611,10 @@ export class SqlDatabaseTree {
|
||||
this._assessmentTitle = this._view.modelBuilder.text().withProps({
|
||||
value: '',
|
||||
CSSStyles: {
|
||||
'font-size': '13px',
|
||||
'line-size': '18px',
|
||||
...styles.LABEL_CSS,
|
||||
'margin-top': '12px',
|
||||
'height': '48px',
|
||||
'width': '540px',
|
||||
'font-weight': '600',
|
||||
'border-bottom': 'solid 1px'
|
||||
}
|
||||
}).component();
|
||||
@@ -642,9 +626,8 @@ export class SqlDatabaseTree {
|
||||
const title = this._view.modelBuilder.text().withProps({
|
||||
value: constants.TARGET_PLATFORM,
|
||||
CSSStyles: {
|
||||
'font-size': '13px',
|
||||
'line-size': '19px',
|
||||
'margin': '0px 0px 0px 0px'
|
||||
...styles.BODY_CSS,
|
||||
'margin': '0 0 4px 0'
|
||||
}
|
||||
});
|
||||
|
||||
@@ -655,8 +638,7 @@ export class SqlDatabaseTree {
|
||||
const impact = this._view.modelBuilder.text().withProps({
|
||||
value: (this._targetType === MigrationTargetType.SQLVM) ? constants.SUMMARY_VM_TYPE : constants.SUMMARY_MI_TYPE,
|
||||
CSSStyles: {
|
||||
'font-size': '18px',
|
||||
'margin': '0px 0px 0px 0px'
|
||||
...styles.PAGE_SUBTITLE_CSS
|
||||
}
|
||||
});
|
||||
|
||||
@@ -666,9 +648,9 @@ export class SqlDatabaseTree {
|
||||
private createRecommendationComponent(): azdata.TextComponent {
|
||||
this._dbName = this._view.modelBuilder.text().withProps({
|
||||
CSSStyles: {
|
||||
'font-size': '13px',
|
||||
'font-weight': 'bold',
|
||||
'margin': '10px 0px 0px 0px'
|
||||
...styles.LABEL_CSS,
|
||||
'margin-bottom': '8px',
|
||||
'font-weight': '700'
|
||||
}
|
||||
}).component();
|
||||
|
||||
@@ -679,11 +661,9 @@ export class SqlDatabaseTree {
|
||||
this._recommendationTitle = this._view.modelBuilder.text().withProps({
|
||||
value: constants.WARNINGS,
|
||||
CSSStyles: {
|
||||
'font-size': '13px',
|
||||
'line-height': '18px',
|
||||
'width': '200px',
|
||||
'font-weight': '600',
|
||||
'margin': '8px 35px 5px 0px'
|
||||
...styles.LABEL_CSS,
|
||||
'margin': '0 8px 4px 0',
|
||||
'width': '220px',
|
||||
}
|
||||
}).component();
|
||||
|
||||
@@ -694,11 +674,9 @@ export class SqlDatabaseTree {
|
||||
this._recommendation = this._view.modelBuilder.text().withProps({
|
||||
value: constants.WARNINGS_DETAILS,
|
||||
CSSStyles: {
|
||||
'font-size': '13px',
|
||||
'line-height': '18px',
|
||||
...styles.LABEL_CSS,
|
||||
'margin': '0 0 4px 24px',
|
||||
'width': '200px',
|
||||
'font-weight': '600',
|
||||
'margin': '8px 0px 5px 0px'
|
||||
}
|
||||
}).component();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user