Skip to content

Commit

Permalink
Bug techjoomla#344 fix: Front end>>Text in other field is not wrapped…
Browse files Browse the repository at this point in the history
… properly of Other field textbox in the List type.
  • Loading branch information
Aishwarya committed Jan 28, 2020
1 parent 555f2d0 commit f68f136
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/components/com_tjucm/media/css/tjucm.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ width:200px !important;
#item-form .minicolors-theme-bootstrap .hex {
width: 100px !important;
height: auto;
}
}

.tjucm-wrapper .tj-wordwrap{
word-break: break-word;
}
1 change: 1 addition & 0 deletions src/components/com_tjucm/site/includes/tjucm.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public static function init($location = 'site')
if ($view == 'item')
{
HTMLHelper::script('media/com_tjucm/js/ui/item.js');
HTMLHelper::StyleSheet('media/com_tjucm/css/tjucm.css', $options);
}

$loaded[$location] = true;
Expand Down
4 changes: 2 additions & 2 deletions src/components/com_tjucm/site/layouts/detail/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@
$layout = new JLayoutFile($layoutToUse, JPATH_ROOT . '/components/com_tjfields/layouts/fields');
$output = $layout->render(array('fieldXml' => $xmlField, 'field' => $field));

// To align text, textarea, textareacounter and editor fields properly
// To align text, textarea, textareacounter, editor and tjlist fields properly

if ($field->type == 'Textarea'|| $field->type == 'Textareacounter'|| $field->type == 'Text' || $field->type == 'Editor')
if ($field->type == 'Textarea'|| $field->type == 'Textareacounter'|| $field->type == 'Text' || $field->type == 'Editor' || $field->type == 'tjlist')
{
?>
<div class="tj-wordwrap">
Expand Down

0 comments on commit f68f136

Please sign in to comment.