Skip to content

Commit

Permalink
fix(image): tooltips for lock aspect ratio, fixed #15
Browse files Browse the repository at this point in the history
  • Loading branch information
mekery committed Jun 14, 2020
1 parent f0c857b commit 47e6903
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/components/views/OImageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@
:hint="$o.lang.image.width" suffix="px"
@input="onInput($event, 'width')" />
<div class="q-px-sm">
<q-btn :icon="keepRatio?'link':'link_off'" dense flat
@click="keepRatio = !keepRatio" />
<q-btn :icon="keepRatio?'link':'link_off'"
@click="keepRatio = !keepRatio"
dense
flat>
<q-tooltip>{{keepRatio ? $o.lang.image.lockAspectRatio : $o.lang.image.unlockAspectRatio}}</q-tooltip>
</q-btn>
</div>
<q-input v-model="imgOption.height" type="number" debounce="500" standout
:hint="$o.lang.image.height" suffix="px"
Expand Down
2 changes: 1 addition & 1 deletion src/data/article.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/i18n/en-us/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ export default {
src: 'Image Source',
caption: 'Caption',
link: 'Link',
lockAspectRatio: 'Lock aspect ratio',
unlockAspectRatio: 'Unlock aspect ratio',
},
embed: {
video: 'Video',
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/pl/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ export default {
src: 'Źródło obrazu',
caption: 'Nagłówek',
link: 'Łącze',
lockAspectRatio: 'Lock aspect ratio',
unlockAspectRatio: 'Unlock aspect ratio',
},
embed: {
video: 'Video',
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/zh-hans/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ export default {
src: '图片地址',
caption: '图片说明',
link: '链接',
lockAspectRatio: '锁定长宽比',
unlockAspectRatio: '解锁长宽比',
},
embed: {
video: '视频',
Expand Down

0 comments on commit 47e6903

Please sign in to comment.