mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
Adjust default fonts (#5146)
* Adjust default fonts * Adjust default ratio
This commit is contained in:
@@ -46,7 +46,7 @@ panel {
|
||||
}
|
||||
|
||||
.tabbedPanel .tabList .tab .tabLabel {
|
||||
font-size: 14px;
|
||||
font-size: 13px;
|
||||
padding-bottom: 4px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ export class QueryEditor extends BaseEditor {
|
||||
private readonly _tabHeight: number = 35;
|
||||
|
||||
// The minimum width/height of the editors hosted in the QueryEditor
|
||||
private readonly _minEditorSize: number = 220;
|
||||
private readonly _minEditorSize: number = 100;
|
||||
|
||||
private _sash: IFlexibleSash;
|
||||
private _editorTopOffset: number;
|
||||
|
||||
@@ -24,8 +24,8 @@ import { CancellationToken } from 'vs/base/common/cancellation';
|
||||
import { IStorageService } from 'vs/platform/storage/common/storage';
|
||||
|
||||
export const RESULTS_GRID_DEFAULTS = {
|
||||
cellPadding: [6, 10, 5],
|
||||
rowHeight: 29
|
||||
cellPadding: [5, 8, 4],
|
||||
rowHeight: 24
|
||||
};
|
||||
|
||||
export const TextCompareEditorVisible = new RawContextKey<boolean>('textCompareEditorVisible', false);
|
||||
|
||||
@@ -24,6 +24,7 @@ const resultsGridConfiguration: IConfigurationNode = {
|
||||
properties: {
|
||||
'resultsGrid.fontFamily': {
|
||||
type: 'string',
|
||||
default: EDITOR_FONT_DEFAULTS.fontFamily,
|
||||
description: nls.localize('fontFamily', "Controls the font family.")
|
||||
},
|
||||
'resultsGrid.fontWeight': {
|
||||
|
||||
@@ -162,6 +162,7 @@ export class VerticalFlexibleSash extends Disposable implements IVerticalSashLay
|
||||
*/
|
||||
export class HorizontalFlexibleSash extends Disposable implements IHorizontalSashLayoutProvider, IFlexibleSash {
|
||||
|
||||
private static initialRatio: number = 0.4;
|
||||
private sash: Sash;
|
||||
private ratio: number;
|
||||
private startPosition: number;
|
||||
@@ -174,7 +175,7 @@ export class HorizontalFlexibleSash extends Disposable implements IHorizontalSas
|
||||
|
||||
constructor(container: HTMLElement, private minHeight: number) {
|
||||
super();
|
||||
this.ratio = 0.5;
|
||||
this.ratio = HorizontalFlexibleSash.initialRatio;
|
||||
this.left = 0;
|
||||
this.sash = new Sash(container, this, { orientation: Orientation.HORIZONTAL });
|
||||
|
||||
@@ -240,7 +241,7 @@ export class HorizontalFlexibleSash extends Disposable implements IHorizontalSas
|
||||
}
|
||||
|
||||
private onSashReset(): void {
|
||||
this.ratio = 0.5;
|
||||
this.ratio = HorizontalFlexibleSash.initialRatio;
|
||||
this._onPositionChange.fire(this.position);
|
||||
this.sash.layout();
|
||||
}
|
||||
@@ -253,7 +254,7 @@ export class HorizontalFlexibleSash extends Disposable implements IHorizontalSas
|
||||
let sashPosition = Math.floor((sashRatio || 0.5) * contentHeight);
|
||||
let midPoint = Math.floor(0.5 * contentHeight);
|
||||
|
||||
if (contentHeight > this.minHeight * 2) {
|
||||
if (contentHeight > this.minHeight * 4) {
|
||||
if (sashPosition < this.minHeight) {
|
||||
sashPosition = this.minHeight;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,10 @@ margin-bottom: 2px;
|
||||
/* OE and connection element group */
|
||||
.monaco-tree .monaco-tree-rows > .monaco-tree-row > .content > .connection-tile,
|
||||
.monaco-tree .monaco-tree-rows > .monaco-tree-row > .content > .object-element-group {
|
||||
padding: 5px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,11 +41,11 @@ export interface IObjectExplorerTemplateData {
|
||||
*/
|
||||
export class ServerTreeRenderer implements IRenderer {
|
||||
|
||||
public static CONNECTION_HEIGHT = 25;
|
||||
public static CONNECTION_HEIGHT = 23;
|
||||
public static CONNECTION_GROUP_HEIGHT = 38;
|
||||
private static CONNECTION_TEMPLATE_ID = 'connectionProfile';
|
||||
private static CONNECTION_GROUP_TEMPLATE_ID = 'connectionProfileGroup';
|
||||
public static OBJECTEXPLORER_HEIGHT = 25;
|
||||
public static OBJECTEXPLORER_HEIGHT = 23;
|
||||
private static OBJECTEXPLORER_TEMPLATE_ID = 'objectExplorer';
|
||||
/**
|
||||
* _isCompact is used to render connections tiles with and without the action buttons.
|
||||
|
||||
Reference in New Issue
Block a user