Skip to content

Commit

Permalink
Refactor layout styles for HomeView component
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlicardo committed Dec 18, 2024
1 parent ec457bd commit 7c96a3b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/bpmn_frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div style="display: flex; flex-direction: row; height: 100vh">
<div style="flex: 3">
<div class="chat-container">
<ChatInterface
@bpmn-xml-received="handleBpmnXml"
@bpmn-json-received="setBpmnJson"
Expand All @@ -11,7 +11,7 @@
</div>
<div
id="canvas"
style="flex: 4; border: 2px solid gray"
class="canvas-container"
@dragover.prevent
@drop="handleDrop"
></div>
Expand Down Expand Up @@ -201,4 +201,22 @@ export default {
#canvas {
margin: 10px;
}
.chat-container {
flex: 3;
}
.canvas-container {
flex: 4;
border: 2px solid gray;
}
@media (min-width: 1800px) {
.chat-container {
flex: 2;
}
.canvas-container {
flex: 5;
}
}
</style>

0 comments on commit 7c96a3b

Please sign in to comment.