mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 09:35: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 {
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
min-height: 22px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ text-cell-component {
|
||||
text-cell-component .notebook-text {
|
||||
display: flex;
|
||||
outline: none;
|
||||
min-height: 50px;
|
||||
}
|
||||
text-cell-component code-component {
|
||||
flex-direction: column;
|
||||
@@ -20,6 +21,11 @@ text-cell-component .notebook-preview {
|
||||
user-select: none;
|
||||
width: 100%;
|
||||
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 {
|
||||
width: 50%
|
||||
|
||||
Reference in New Issue
Block a user