diff --git a/app/views/layouts/_user_courses.html.erb b/app/views/layouts/_user_courses.html.erb
index d1699b776..7e3249a55 100644
--- a/app/views/layouts/_user_courses.html.erb
+++ b/app/views/layouts/_user_courses.html.erb
@@ -104,4 +104,13 @@
$("#user_show_more_course").hide();
$('#user_hide_course').show();
}
+
+ $(".course_list_menu").each(function(){
+ var courseWidth = $(this).children().eq(0).width();
+ var classWidth = 160 -courseWidth;
+ console.log(courseWidth, classWidth);
+ if(courseWidth < 80){
+ $(this).children().eq(2).css("max-width",classWidth + "px");
+ }
+ })