mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 01:14:23 +01:00
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:
parent
9d3df0a86a
commit
6fdaa4018e
@ -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 (
|
||||
|
@ -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 = () => {
|
||||
|
@ -44,7 +44,6 @@ app.on('ready', async () => {
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
minWidth: 1000,
|
||||
minHeight: 640,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
|
Loading…
Reference in New Issue
Block a user