Skip to content

Commit

Permalink
Handle smaller screen widths for objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltouroumov committed Sep 5, 2024
1 parent b0ba468 commit c2c3de3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/viewer/ViewProjectObj.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ const objClass = computed(() => {
className = obj.objectWidth;
}
return ['col', { [className]: true }];
if (className === 'col-12') {
// Full-Width object
return ['col', 'col-12'];
} else {
// Add grid fallback for other objects
return ['col', 'col-12', 'col-sm-6', { [className]: true }];
}
});
const objTemplateClass = computed(() => {
Expand Down Expand Up @@ -171,9 +177,6 @@ const decrement = () => {
</script>

<style lang="scss">
.obj-preview {
overflow: auto;
}
.project-obj {
height: 100%;
overflow: hidden;
Expand Down

0 comments on commit c2c3de3

Please sign in to comment.