Skip to content

Commit 4bfa5ed

Browse files
committed
centered text div dynamically and added img to doc
1 parent c550136 commit 4bfa5ed

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/assets/snaptogrid.jpg

9.95 KB
Loading

src/components/Canvas.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<template>
88
<!-- the background Canvas grid -->
99
<div class="component-display grid-bg" :style="{backgroundColor:'#FFFFF' }" v-on:click="handleClick" v-on:click.right="handleRight">
10-
<div class="cssContainer" :style="{
11-
'background-size': `${gridWidth}px ${gridHeight}px,
12-
${gridWidth}px ${gridHeight}px`,
13-
'height': `${this.containerH}px`, 'width': `${this.containerW}px`
10+
<div class="cssContainer" :style="{
11+
'background-size': `${gridWidth}px ${gridHeight}px,
12+
${gridWidth}px ${gridHeight}px`,
13+
'height': `${this.containerH}px`, 'width': `${this.containerW}px`
1414
}">
15+
<p class="cssContainerText"> {{this.activeRoute}} Preview </p>
1516
<!-- This is the actual component box -->
1617
<!-- https://www.npmjs.com/package/vue-draggable-resizable -->
17-
<p class="cssContainerText"> {{this.activeRoute}} Preview </p>
1818
<!--each component box in canvas will have these properties-->
1919
<vue-draggable-resizable
2020
class-name="component-box"
@@ -880,10 +880,11 @@ behavior: url(/pie/PIE.htc);
880880
}
881881
882882
.cssContainerText {
883-
position: absolute;
883+
display: flex;
884+
justify-content: center;
885+
align-content: center;
884886
font-size: 3em;
885887
margin-top: -4%;
886-
margin-left: 29%;
887888
color: black;
888889
}
889890

src/components/right-sidebar/tutorial/NewVersionInfo.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
<h6 class="infoHeading">What's New in OverVue 8.0?</h6>
44

55
<p class="info-sub-heading">Improved Prototyping with Snap to Grid Positioning</p>
6-
<p class="infoContent">Level up your prototyping with snap to grid positioning and component sizing that is exported as CSS grid styling in exported SFC's. Overvue 8.0 also fixes bugs that led to conditional application of color and position styling in previous versions. </p>
7-
6+
7+
<p class="infoContent">Level up your prototyping with snap to grid positioning and component sizing that is exported as CSS grid styling in exported SFC's. Overvue 8.0 also fixes bugs that led to conditional application of color and position styling in previous versions. Click on these buttons below and a menu pull down show appear to change the grid density for either the width or height. </p>
8+
<img src="../../../assets/snaptogrid.jpg" class="tut-image">
89
<p class="info-sub-heading">Augmented Component Creation with Element+ Component Library</p>
910
<p class="infoContent">Take advantage of the popular, Vue 3.0 compatible component library, Element+. Manipulate these components in app, and rest easy knowing exported code includes both the library elements, and their necessary dependencies.</p>
1011

@@ -85,7 +86,7 @@ export default {
8586
.tut-screenshot {
8687
margin: 4px;
8788
border: 1px solid $primary;
88-
max-width: 300px;
89+
max-width: 200px;
8990
}
9091
9192
#advanced-btn {

0 commit comments

Comments
 (0)