Skip to content

Commit

Permalink
Fix CSS for resizing columns (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg authored Aug 18, 2023
1 parent 13b8ec9 commit 4d0fa96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
32 changes: 0 additions & 32 deletions .goreleaser.yml

This file was deleted.

6 changes: 2 additions & 4 deletions frontend/src/components/AppDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ onMounted(() => {
const boxAminWidth = 300
rightPanel.value.style.width = `${Math.min(
Math.max(400, root.value.offsetWidth - (pointerRelativeXpos + 10)), // 8px padding + 2px border
Math.max(300, root.value.offsetWidth - (pointerRelativeXpos + 10)), // 8px padding + 2px border
root.value.offsetWidth - boxAminWidth,
)}px`
rightPanel.value.style.flexGrow = 0
Expand All @@ -234,9 +234,7 @@ onMounted(() => {
// Resize box A
// * 8px is the left/right spacing between .handler and its inner pseudo-element
// * Set flex-grow to 0 to prevent it from growing
// leftPanel.value.style.width = `${Math.max(boxAminWidth, pointerRelativeXpos - 8)}px`
// leftPanel.value.style.flexGrow = 0
// leftPanel.value.style.flexShrink = 0
leftPanel.value.style.width = `${Math.max(boxAminWidth, pointerRelativeXpos - 8)}px`
})
root.value.addEventListener('mouseup', () => {
resizing.value = false
Expand Down

0 comments on commit 4d0fa96

Please sign in to comment.