mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-18 02:30:58 +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';
|
import StyledWrapper from './StyledWrapper';
|
||||||
|
|
||||||
const MIN_LEFT_PANE_WIDTH = 300;
|
const MIN_LEFT_PANE_WIDTH = 100;
|
||||||
const MIN_RIGHT_PANE_WIDTH = 350;
|
const MIN_RIGHT_PANE_WIDTH = 220;
|
||||||
const DEFAULT_PADDING = 5;
|
const DEFAULT_PADDING = 5;
|
||||||
|
|
||||||
const RequestTabPanel = () => {
|
const RequestTabPanel = () => {
|
||||||
@ -68,6 +68,8 @@ const RequestTabPanel = () => {
|
|||||||
|
|
||||||
const handleMouseMove = (e) => {
|
const handleMouseMove = (e) => {
|
||||||
if (dragging) {
|
if (dragging) {
|
||||||
|
console.log(asideWidth + DEFAULT_PADDING + MIN_LEFT_PANE_WIDTH);
|
||||||
|
console.log(e.clientX + 2);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let leftPaneXPosition = e.clientX + 2;
|
let leftPaneXPosition = e.clientX + 2;
|
||||||
if (
|
if (
|
||||||
|
@ -12,7 +12,7 @@ import { IconSettings, IconCookie, IconHeart } from '@tabler/icons';
|
|||||||
import { updateLeftSidebarWidth, updateIsDragging, showPreferences } from 'providers/ReduxStore/slices/app';
|
import { updateLeftSidebarWidth, updateIsDragging, showPreferences } from 'providers/ReduxStore/slices/app';
|
||||||
import { useTheme } from 'providers/Theme';
|
import { useTheme } from 'providers/Theme';
|
||||||
|
|
||||||
const MIN_LEFT_SIDEBAR_WIDTH = 221;
|
const MIN_LEFT_SIDEBAR_WIDTH = 150;
|
||||||
const MAX_LEFT_SIDEBAR_WIDTH = 600;
|
const MAX_LEFT_SIDEBAR_WIDTH = 600;
|
||||||
|
|
||||||
const Sidebar = () => {
|
const Sidebar = () => {
|
||||||
|
@ -44,7 +44,6 @@ app.on('ready', async () => {
|
|||||||
y,
|
y,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
minWidth: 1000,
|
|
||||||
minHeight: 640,
|
minHeight: 640,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user