feat: possibiliting slicing bruno to teh sides of the screen with the super/win/command && improve the experience at the small screen

This commit is contained in:
gabriel 2024-03-08 20:11:53 -03:00
parent 9d3df0a86a
commit 6fdaa4018e
3 changed files with 5 additions and 4 deletions

View File

@ -19,8 +19,8 @@ import { DocExplorer } from '@usebruno/graphql-docs';
import StyledWrapper from './StyledWrapper';
const MIN_LEFT_PANE_WIDTH = 300;
const MIN_RIGHT_PANE_WIDTH = 350;
const MIN_LEFT_PANE_WIDTH = 100;
const MIN_RIGHT_PANE_WIDTH = 220;
const DEFAULT_PADDING = 5;
const RequestTabPanel = () => {
@ -68,6 +68,8 @@ const RequestTabPanel = () => {
const handleMouseMove = (e) => {
if (dragging) {
console.log(asideWidth + DEFAULT_PADDING + MIN_LEFT_PANE_WIDTH);
console.log(e.clientX + 2);
e.preventDefault();
let leftPaneXPosition = e.clientX + 2;
if (

View File

@ -12,7 +12,7 @@ import { IconSettings, IconCookie, IconHeart } from '@tabler/icons';
import { updateLeftSidebarWidth, updateIsDragging, showPreferences } from 'providers/ReduxStore/slices/app';
import { useTheme } from 'providers/Theme';
const MIN_LEFT_SIDEBAR_WIDTH = 221;
const MIN_LEFT_SIDEBAR_WIDTH = 150;
const MAX_LEFT_SIDEBAR_WIDTH = 600;
const Sidebar = () => {

View File

@ -44,7 +44,6 @@ app.on('ready', async () => {
y,
width,
height,
minWidth: 1000,
minHeight: 640,
webPreferences: {
nodeIntegration: true,