1
0
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:
trendschau
2021-07-21 21:21:43 +02:00
parent 8d82be9400
commit 5bb455e7ac
4 changed files with 4 additions and 10 deletions

View File

@@ -2,5 +2,5 @@
The open-source flat-file cms for text-driven websites. Create handbooks, documentations, manuals, web-novels, traditional websites, and more.
![](media/live/youtube-6i2-uv88gke.jpeg){.center}
![youtube-video](media/live/youtube-6i2-uv88gke.jpeg "click to load video"){#6i2-uv88gke .youtube}

View File

@@ -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)

View File

@@ -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%;
}

View File

@@ -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(){