mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
N°2847 - Fix (raw) text field size & style
This commit is contained in:
@@ -1985,11 +1985,11 @@ JS
|
||||
// Ok, the text area is drawn here
|
||||
$sHTMLValue = <<<HTML
|
||||
{$sAdditionalStuff}
|
||||
<div class="field_input_zone field_input_text">
|
||||
<div class="field_input_zone field_input_text ibo-input-wrapper ibo-input-text-wrapper" data-validation="untouched">
|
||||
<div class="f_i_text_header">
|
||||
<span class="fullscreen_button" title="{$sFullscreenLabelForHtml}"></span>
|
||||
</div>
|
||||
<textarea class="" title="{$sHelpText}" name="attr_{$sFieldPrefix}{$sAttCode}{$sNameSuffix}" rows="8" cols="40" id="{$iId}" {$sStyle} >{$sEditValueForHtml}</textarea>
|
||||
<textarea class="ibo-input ibo-input-text" title="{$sHelpText}" name="attr_{$sFieldPrefix}{$sAttCode}{$sNameSuffix}" rows="8" cols="40" id="{$iId}" {$sStyle} >{$sEditValueForHtml}</textarea>
|
||||
</div>
|
||||
{$sValidationSpan}{$sReloadSpan}
|
||||
HTML;
|
||||
|
||||
@@ -1054,7 +1054,7 @@ class DesignerLongTextField extends DesignerTextField
|
||||
public function __construct($sCode, $sLabel = '', $defaultValue = '')
|
||||
{
|
||||
parent::__construct($sCode, $sLabel, $defaultValue);
|
||||
$this->aCSSClasses[] = 'ibo-input-text-area';
|
||||
$this->aCSSClasses[] = 'ibo-input-text';
|
||||
}
|
||||
|
||||
public function Render(WebPage $oP, $sFormId, $sRenderMode='dialog')
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
@import "input-select-icon";
|
||||
@import "input-string";
|
||||
@import "input-set";
|
||||
@import "input-textarea";
|
||||
@import "input-text";
|
||||
|
||||
13
css/backoffice/components/input/_input-text.scss
Normal file
13
css/backoffice/components/input/_input-text.scss
Normal file
@@ -0,0 +1,13 @@
|
||||
$ibo-input-text--min-height: 12rem !default;
|
||||
$ibo-input-text--padding-x: 12px !default;
|
||||
$ibo-input-text--padding-y: 10px !default;
|
||||
|
||||
.ibo-input-text {
|
||||
min-height: $ibo-input-text--min-height;
|
||||
padding: $ibo-input-text--padding-y $ibo-input-text--padding-x;
|
||||
}
|
||||
|
||||
.ibo-input-text--export {
|
||||
width: 100%;
|
||||
min-height: 15em;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
$ibo-input-text-area--min-height: 4rem !default;
|
||||
|
||||
.ibo-input-text-area {
|
||||
min-height: $ibo-input-text-area--min-height;
|
||||
}
|
||||
|
||||
.ibo-input-text-area--export {
|
||||
width: 100%;
|
||||
min-height: 15em;
|
||||
}
|
||||
@@ -338,7 +338,7 @@ EOF
|
||||
$oBlockResult->AddSubBlock(new Html(Dict::S('Core:BulkExport:ExportResult')));
|
||||
|
||||
$oTextArea = new TextArea('export_content', '', 'export_content');
|
||||
$oTextArea->AddCSSClass('ibo-input-text-area--export');
|
||||
$oTextArea->AddCSSClass('ibo-input-text--export');
|
||||
$oBlockResult->AddSubBlock($oTextArea);
|
||||
$oP->AddSubBlock($oBlockResult);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user