Question

Adjust description field size for customers

  • 9 September 2022
  • 6 replies
  • 284 views

Userlevel 1
Badge

I’m new in freshdesk and I have the same question, however, the topic has been closed.

Is there a way to adjust the size of the description field ? Most of my customers want to include a printscreen in the text, but then the windows of the description field is way to small.


6 replies

Userlevel 7
Badge +7

Hi @JDCQ - thank you for your query. We will have someone from our support team respond.

Tagging @Pooja Bernice - please can you look into this!

Userlevel 5
Badge +5

Hi @JDCQ,

Welcome to the Freshworks Community!

I understand you are looking to adjust your description screen size, I am afraid we do not have the option to resize as of now, but the character limit to the description box is currently unlimited. There shouldn’t be any issues in filling the field due to this, we do have the option of including attachments which can be a solution to include screen-caps if required.

Cheers!

This sounds like an issue that should be solvable via CSS on the theme. Any hints which specific parameter this may be related to?

This sounds like an issue that should be solvable via CSS on the theme. Any hints which specific parameter this may be related to?

I got this to work with the following CSS code:

/* make description box adjustable, vertically */
div.fr-wrapper.show-placeholder {
resize: vertical;
}

 

Userlevel 4
Badge +12

Hello @JDCQ, Were you able to try the CSS Snippet suggested by @Steve1? It allows the user to adjust the size manually. In case you’re looking for a way to expand the description field automatically, you can try the following code:

 

.fr-element.fr-view {
height:300px;
}
.fr-wrapper {
min-height:300px;
}

 

You can add this code to the Admin > Portals > Customize > Edit theme > Stylesheet > CSS section. This is how the description field would look like with the code added to the CSS section:

 

 

You can adjust the px values if you would like to expand it a bit more.

 

Cheers!

Hey @JDCQ, i know the post is quite old, but I had the same issues and came up with the following CSS:

/* Increase description field heigth and allow resizing */
#ticket-new-main #ticket-field-00000000000 .fr-box {
resize: vertical; /* Allows vertical resizing */
overflow: hidden; /* Hide overflow to prevent scrollbars on the .fr-box */
min-height: 220px !important; /* Minimum height to start with */
}

#ticket-new-main #ticket-field-00000000000 .fr-wrapper {
min-height: calc(100% - 76px) !important; /* Subtract the combined height of top and bottom toolbars. Use calc() to dynamically adjust height */
overflow: auto; /* Allow scrolling within the .fr-wrapper if content overflows */
}

#ticket-new-main #ticket-field-00000000000 .fr-element {
min-height: 100% !important; /* Ensure it fills the .fr-wrapper */
}

I have not only increased the height but also added the possibility to resize the description box (.fr-box) vertically. Also im specifically targeting the description field to make sure it’s only applied there (replace the zeros 00000000000 with the IDs of your ticket field).

Im only fixing the height on the outside .fr-box. The inner elements .fr-wrapper and .fr-element are then using the same hight as the outside .fr-box. For the .fr-wrapper I had to remove the height of the top and bottom toolbars, because otherwise it would have been with a scrollbar, because it is 100% height of the .fr-box + the height of the top and bottom toolbars.

Now it hast the perfect height, and can even be resized.

I know that usining !important is a bad habbit but some of the elements have custom stylings which are overwriting our CSS.

Hope it helps, cheers!

Reply