mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
add css styling for text component (#5491)
This commit is contained in:
@@ -95,11 +95,13 @@ export class SchemaCompareResult {
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
let sourceLabel = view.modelBuilder.text().withProperties({
|
let sourceLabel = view.modelBuilder.text().withProperties({
|
||||||
value: localize('schemaCompare.sourceLabel', 'Source')
|
value: localize('schemaCompare.sourceLabel', 'Source'),
|
||||||
|
CSSStyles: { 'margin-bottom': '0px' }
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
let targetLabel = view.modelBuilder.text().withProperties({
|
let targetLabel = view.modelBuilder.text().withProperties({
|
||||||
value: localize('schemaCompare.targetLabel', 'Target')
|
value: localize('schemaCompare.targetLabel', 'Target'),
|
||||||
|
CSSStyles: { 'margin-bottom': '0px' }
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
let arrowLabel = view.modelBuilder.text().withProperties({
|
let arrowLabel = view.modelBuilder.text().withProperties({
|
||||||
|
|||||||
1
src/sql/azdata.proposed.d.ts
vendored
1
src/sql/azdata.proposed.d.ts
vendored
@@ -3165,6 +3165,7 @@ declare module 'azdata' {
|
|||||||
export interface TextComponentProperties {
|
export interface TextComponentProperties {
|
||||||
value?: string;
|
value?: string;
|
||||||
links?: LinkArea[];
|
links?: LinkArea[];
|
||||||
|
CSSStyles?: { [key: string]: string };
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LinkArea {
|
export interface LinkArea {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'modelview-text',
|
selector: 'modelview-text',
|
||||||
template: `
|
template: `
|
||||||
<p [style.width]="getWidth()" [innerHTML]="getValue()"></p>`
|
<p [style.width]="getWidth()" [innerHTML]="getValue()" [ngStyle]="this.CSSStyles"></p>`
|
||||||
})
|
})
|
||||||
export default class TextComponent extends ComponentBase implements IComponent, OnDestroy, AfterViewInit {
|
export default class TextComponent extends ComponentBase implements IComponent, OnDestroy, AfterViewInit {
|
||||||
@Input() descriptor: IComponentDescriptor;
|
@Input() descriptor: IComponentDescriptor;
|
||||||
|
|||||||
Reference in New Issue
Block a user