Changeset 35775
- Timestamp:
- 2021-12-08T16:57:15+13:00 (2 years ago)
- Location:
- main/trunk/model-interfaces-dev/atea/ocr/src/components
- Files:
-
- 1 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/ocr/src/components/MainPage.vue
r35769 r35775 38 38 </div> 39 39 40 <div class="ocr-image-container"> 41 <img class="ocr-image" :src="imageUrl" /> 42 <img v-if="showThresholdedImage" class="ocr-image" :src="thresholdedImageUrl" /> 43 44 <div v-if="thresholdedImageUrl" class="thresholded-image-controls card"> 45 <input id="chk-show-thresholded-image" type="checkbox" v-model="showThresholdedImage" /> 46 <label for="chk-show-thresholded-image">{{ translations.get('MainPage_ShowThresholdedImage') }}</label> 47 48 <span class="body2">{{ translations.get('MainPage_ThresholdedImageDescription') }}</span> 49 </div> 50 </div> 40 <ocr-image-display :imageUrl="imageUrl" :thresholdedImageUrl="thresholdedImageUrl" /> 51 41 52 42 <textarea class="text-container" v-model="ocrResult" :placeholder="translations.get('MainPage_OCRHint')" … … 132 122 } 133 123 134 .ocr-image-container {135 position: relative;136 height: 100%;137 width: 100%;138 139 display: grid;140 grid-template-columns: 1fr;141 grid-template-rows: 1fr;142 143 align-items: center;144 justify-items: center;145 146 &:hover {147 .thresholded-image-controls {148 opacity: 0.99;149 }150 }151 }152 153 .ocr-image {154 border: 1px solid #444;155 max-width: 100%;156 max-height: 80vh;157 object-fit: contain;158 grid-row: 1;159 grid-column: 1;160 }161 162 .thresholded-image-controls {163 position: absolute;164 top: 1em;165 left: 1em;166 max-width: 50%;167 168 display: grid;169 grid-template-columns: auto 1fr;170 grid-template-rows: auto auto;171 align-items: center;172 justify-items: start;173 gap: 0.5em;174 175 transition-duration: var(--transition-duration);176 opacity: 0;177 178 span {179 grid-column: span 2;180 }181 }182 183 124 .controls { 184 125 display: flex; … … 195 136 import { mapState } from "vuex"; 196 137 import EditPage from "./EditPage.vue"; 138 import OcrImageDisplay from "./OcrImageDisplay.vue" 197 139 import { ModalController } from "./ModalDialog.vue" 198 140 import OcrService, { OcrOptions } from "../js/OcrService" … … 204 146 name: "MainPage", 205 147 components: { 206 EditPage 148 EditPage, 149 OcrImageDisplay 207 150 }, 208 151 data() {
Note:
See TracChangeset
for help on using the changeset viewer.