mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Notebook - text cell - minimum height fix (#14080)
* Adding minimum height to text cell element so whether empty or occupied with a single line of content, the container is the same height. * Added styles to remove top padding/margin from first child element and set top-padding of container. * Switch top padding to px value * Removed line-height and min-height as these are no longer necessary to maintain text-cell height.
This commit is contained in:
@@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
.notebook-preview {
|
.notebook-preview {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 22px;
|
|
||||||
min-height: 22px;
|
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ text-cell-component {
|
|||||||
text-cell-component .notebook-text {
|
text-cell-component .notebook-text {
|
||||||
display: flex;
|
display: flex;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
min-height: 50px;
|
||||||
}
|
}
|
||||||
text-cell-component code-component {
|
text-cell-component code-component {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -20,6 +21,11 @@ text-cell-component .notebook-preview {
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
padding-top: 14px;
|
||||||
|
}
|
||||||
|
text-cell-component .notebook-preview > *:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
text-cell-component .show-markdown.show-preview code-component {
|
text-cell-component .show-markdown.show-preview code-component {
|
||||||
width: 50%
|
width: 50%
|
||||||
|
|||||||
Reference in New Issue
Block a user