Skip to content

Commit

Permalink
minor tweaks to split gutter (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
swyxio authored Aug 2, 2023
1 parent 4e34db0 commit 107da36
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 28 deletions.
30 changes: 5 additions & 25 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,7 @@ body {
}

:root {
/* account for the arrow */
--actual-height: calc(100vh - 12px - 80px);
}

.myarrow {
position: relative;
padding: 12px 0 0 0;
}

.myarrow:before {
content: '';
height: 0;
width: 0;
border-width: 0 8px 12px 8px;
border-style: solid;
border-color: transparent transparent white transparent;
position: absolute;

top: 0;
left: 50%;
transform: translateX(-50%);
--actual-height: calc(100vh - 80px);
}

@media (prefers-color-scheme: dark) {
Expand All @@ -50,8 +30,8 @@ body {
/* disabled because its quite buggy */
/* resize: both; */
width: 100%;
height: calc(100vh - 12px - var(--superprompt-height));
margin-top: 12px;
height: calc(100vh - var(--superprompt-height));
margin-top: 4px;
margin: 0 auto;
position: relative;
}
Expand Down Expand Up @@ -83,7 +63,7 @@ body {
height: 100%;
resize: none;
overflow-y: auto; /* Adds a scrollbar when the content is too big */
padding: 4px 12px;
padding: 4px 4px;
font-size: 16px;
outline: none;
flex-grow: 1;
Expand Down Expand Up @@ -123,7 +103,7 @@ webview {
top: 0;
left: 0;
width: 100%;
height: calc(100vh - 12px - var(--superprompt-height));
height: calc(100vh - var(--superprompt-height));
display: inline-flex !important;
}

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/split.js/1.6.0/split.min.js"></script>
</head>

<body class="myarrow">
<body class="">
<div id="webviewContainer" class="flex split">
<!-- Panes Go Here -->
</div>
Expand All @@ -18,8 +18,8 @@
name="prompt"
autofocus
placeholder="Enter a superprompt here.
- Submit: Cmd/Ctrl+Enter
- Resize windows: Cmd+1/2/3/A/-/+
- Quick Open: Cmd+G or Submit: Cmd/Ctrl+Enter (customizable in menu)
- Switch windows: Cmd+1/2/3/A or Resize windows: Cmd -/+
- New chat: Cmd+R
"
></textarea>
Expand Down
2 changes: 2 additions & 0 deletions interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ log.info('panes', panes);
const splitInstance = Split(panes, {
direction: 'horizontal',
minSize: 0,
gutterSize: 3,
// gutterStyle: () => ({ background: 'black' })
});

// Update the split sizes once the Electron app DOM is ready
Expand Down

0 comments on commit 107da36

Please sign in to comment.