Fixed #2943 - Image: Handling of disabled zoomOut and zoomIn in preview
parent
2da324e510
commit
34cca518cf
|
@ -23,13 +23,13 @@
|
||||||
</slot>
|
</slot>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="p-image-action p-link" @click="zoomOut" type="button" :disabled="isZoomOutDisabled" :aria-label="zoomOutAriaLabel" v-bind="ptm('zoomOutButton')">
|
<button :class="['p-image-action p-link', { 'p-disabled': isZoomOutDisabled }]" @click="zoomOut" type="button" :disabled="isZoomOutDisabled" :aria-label="zoomOutAriaLabel" v-bind="ptm('zoomOutButton')">
|
||||||
<slot name="zoomout">
|
<slot name="zoomout">
|
||||||
<SearchMinusIcon v-bind="ptm('zoomOutIcon')" />
|
<SearchMinusIcon v-bind="ptm('zoomOutIcon')" />
|
||||||
</slot>
|
</slot>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="p-image-action p-link" @click="zoomIn" type="button" :disabled="isZoomInDisabled" :aria-label="zoomInAriaLabel" v-bind="ptm('zoomInButton')">
|
<button :class="['p-image-action p-link', { 'p-disabled': isZoomInDisabled }]" @click="zoomIn" type="button" :disabled="isZoomInDisabled" :aria-label="zoomInAriaLabel" v-bind="ptm('zoomInButton')">
|
||||||
<slot name="zoomin">
|
<slot name="zoomin">
|
||||||
<SearchPlusIcon v-bind="ptm('zoomInIcon')" />
|
<SearchPlusIcon v-bind="ptm('zoomInIcon')" />
|
||||||
</slot>
|
</slot>
|
||||||
|
@ -322,10 +322,6 @@ export default {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-image-action.p-link[disabled] {
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.p-image-preview {
|
.p-image-preview {
|
||||||
transition: transform 0.15s;
|
transition: transform 0.15s;
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
|
|
Loading…
Reference in New Issue