mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fix delete behavior on text cells. (#13153)
* remove default <p> text and add css instead * remove the top/bottom padding on preview markdown
This commit is contained in:
@@ -225,7 +225,7 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
|
|||||||
this._content = localize('addContent', "<i>Add content here...</i>");
|
this._content = localize('addContent', "<i>Add content here...</i>");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this._content = this.cellModel.source[0] === '' ? '<p> </p>' : this.cellModel.source;
|
this._content = this.cellModel.source;
|
||||||
}
|
}
|
||||||
this.markdownRenderer.setNotebookURI(this.cellModel.notebookModel.notebookUri);
|
this.markdownRenderer.setNotebookURI(this.cellModel.notebookModel.notebookUri);
|
||||||
this.markdownResult = this.markdownRenderer.render({
|
this.markdownResult = this.markdownRenderer.render({
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ text-cell-component .notebook-preview {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
|
padding-top: 14px;
|
||||||
|
padding-bottom: 14px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
outline: none;
|
outline: none;
|
||||||
@@ -29,7 +31,9 @@ text-cell-component .show-markdown .notebook-preview {
|
|||||||
border-left-width: 1px;
|
border-left-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-top-width: 0;
|
border-top-width: 0;
|
||||||
width: 50%
|
width: 50%;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
.notebook-preview.actionselect {
|
.notebook-preview.actionselect {
|
||||||
user-select: text;
|
user-select: text;
|
||||||
|
|||||||
Reference in New Issue
Block a user