Skip to content

Commit 8fb27ad

Browse files
staredclaude
andcommitted
Fix chart display responsiveness and remove shadow (v0.1.2)
- Fix chart being cut off vertically when window height is low - Remove chart shadow/border for cleaner appearance - Ensure chart always fits within available container space - Center chart both horizontally and vertically - Add proper overflow handling to prevent chart truncation - Maintain aspect ratio while scaling to fit container Charts now display properly at any screen size without being cut off. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 085538d commit 8fb27ad

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webr-ggplot2-demo",
33
"private": true,
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/components/OutputDisplay.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ watch(
8181
.output-content {
8282
flex: 1;
8383
padding: 0;
84-
overflow-y: auto;
84+
overflow: hidden;
8585
display: flex;
8686
flex-direction: column;
87+
min-height: 0;
8788
}
8889
8990
.loading {
@@ -124,18 +125,20 @@ watch(
124125
.chart-display {
125126
flex: 1;
126127
display: flex;
127-
align-items: flex-start;
128+
align-items: center;
128129
justify-content: center;
129-
padding: 0;
130+
padding: 1rem;
130131
background: #fff;
132+
min-height: 0;
133+
overflow: hidden;
131134
}
132135
133136
.chart-image {
134137
max-width: 100%;
135138
max-height: 100%;
139+
width: auto;
136140
height: auto;
137-
border-radius: 4px;
138-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
141+
object-fit: contain;
139142
}
140143
141144
.console-section {

0 commit comments

Comments
 (0)