mirror of
https://github.com/typemill/typemill.git
synced 2025-08-04 21:27:41 +02:00
Version 1.4.7: Fixes noresize for images
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
|
||||
The open-source flat-file cms for text-driven websites. Create handbooks, documentations, manuals, web-novels, traditional websites, and more.
|
||||
|
||||
{.center}
|
||||
{#6i2-uv88gke .youtube}
|
||||
|
||||
|
@@ -31,6 +31,8 @@ class ProcessAssets
|
||||
|
||||
public function __construct($desiredSizes = NULL)
|
||||
{
|
||||
ini_set('memory_limit', '512M');
|
||||
|
||||
$this->baseFolder = getcwd() . DIRECTORY_SEPARATOR;
|
||||
|
||||
$this->mediaFolder = $this->baseFolder . 'media' . DIRECTORY_SEPARATOR;
|
||||
@@ -48,8 +50,6 @@ class ProcessAssets
|
||||
$this->fileFolder = $this->mediaFolder . 'files' . DIRECTORY_SEPARATOR;
|
||||
|
||||
$this->desiredSizes = $desiredSizes;
|
||||
|
||||
ini_set('memory_limit', '1024M');
|
||||
}
|
||||
|
||||
public function checkFolders($forassets = null)
|
||||
|
@@ -1594,12 +1594,6 @@ select{
|
||||
padding-left: 0;
|
||||
font-size: .9em;
|
||||
}
|
||||
.control-group.imgcheckmark input{
|
||||
width: 0;
|
||||
margin: 0;
|
||||
left: 100%;
|
||||
z-index: 9;
|
||||
}
|
||||
.imgcheckmark .checkmark{
|
||||
left: 100%;
|
||||
}
|
||||
|
@@ -1463,7 +1463,7 @@ const imageComponent = Vue.component('image-component', {
|
||||
'<label for="imgcaption">{{ \'Caption\'|translate }}: </label><input title="imgcaption" type="text" placeholder="caption" v-model="imgcaption" @input="createmarkdown" max="140" />' +
|
||||
'<label for="imgurl">{{ \'Link\'|translate }}: </label><input title="imgurl" type="url" placeholder="url" v-model="imglink" @input="createmarkdown" />' +
|
||||
'<label for="imgclass">{{ \'Class\'|translate }}: </label><select title="imgclass" v-model="imgclass" @change="createmarkdown"><option value="center">{{ \'Center\'|translate }}</option><option value="left">{{ \'Left\'|translate }}</option><option value="right">{{ \'Right\'|translate }}</option></select>' +
|
||||
'<label v-if="showresize" class="control-group imgcheckmark" for="imgclass">{{ \'Do not resize\'|translate }}:<input title="saveoriginal" class="checkbox" type="checkbox" v-model="noresize" @change="createmarkdown" /><span class="checkmark"></span></label>' +
|
||||
'<label v-if="showresize" class="control-group imgcheckmark">{{ \'Do not resize\'|translate }}:<input title="saveoriginal" class="checkbox" type="checkbox" v-model="noresize" @change="createmarkdown" /><span class="checkmark"></span></label>' +
|
||||
'<input title="imgid" type="hidden" placeholder="id" v-model="imgid" @input="createmarkdown" max="140" />' +
|
||||
'</div></div>',
|
||||
data: function(){
|
||||
|
Reference in New Issue
Block a user