소스 검색

[fix] navbar and strip before translating

version-14
Rushabh Mehta 8 년 전
부모
커밋
2c40d683a7
5개의 변경된 파일23개의 추가작업 그리고 26개의 파일을 삭제
  1. +1
    -1
      frappe/__init__.py
  2. +8
    -10
      frappe/public/css/mobile.css
  3. +2
    -2
      frappe/public/css/navbar.css
  4. +10
    -11
      frappe/public/less/mobile.less
  5. +2
    -2
      frappe/public/less/navbar.less

+ 1
- 1
frappe/__init__.py 파일 보기

@@ -47,7 +47,7 @@ def _(msg, lang=None):
lang = local.lang

# msg should always be unicode
msg = cstr(msg)
msg = cstr(msg).strip()

return get_full_dict(local.lang).get(msg) or msg



+ 8
- 10
frappe/public/css/mobile.css 파일 보기

@@ -64,16 +64,6 @@ body {
margin: 0px;
display: inline-block;
}
#navbar-breadcrumbs li {
max-width: 150px;
white-space: nowrap;
overflow: hidden;
}
#navbar-breadcrumbs li a {
width: 100px;
overflow: hidden;
text-overflow: ellipsis;
}
#navbar-breadcrumbs > li,
#navbar-breadcrumbs > li > a {
display: inline-block;
@@ -195,6 +185,14 @@ body {
width: 100% !important;
}
}
@media (max-width: 991px) and (max-width: 480px) {
#navbar-breadcrumbs li a {
width: 100px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
@media (max-width: 767px) {
.modal .modal-dialog {
margin: 0px;


+ 2
- 2
frappe/public/css/navbar.css 파일 보기

@@ -187,9 +187,9 @@
#navbar-breadcrumbs > li > a {
padding: 6px 15px 10px 0px;
}
@media (max-width: 1199px) {
@media (min-width: 991px) and (max-width: 1199px) {
#navbar-breadcrumbs > li > a {
width: 140px;
max-width: 143px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;


+ 10
- 11
frappe/public/less/mobile.less 파일 보기

@@ -7,14 +7,14 @@ html {

body {
height: 100%;
// The html and body elements cannot have any padding or margin.
// The html and body elements cannot have any padding or margin.
margin: 0px;
padding: 0px !important;
}

html,
body {
overflow-x: hidden; //Prevent scroll on narrow devices
overflow-x: hidden; //Prevent scroll on narrow devices
}

@media(max-width: 991px) {
@@ -88,15 +88,14 @@ body {
margin: 0px;
display: inline-block;

li {
max-width: 150px;
white-space: nowrap;
overflow: hidden;

a {
width: 100px;
overflow: hidden;
text-overflow: ellipsis;
@media(max-width: 480px) {
li {
a {
width: 100px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
}


+ 2
- 2
frappe/public/less/navbar.less 파일 보기

@@ -211,8 +211,8 @@
#navbar-breadcrumbs > li > a {
padding: 6px 15px 10px 0px;

@media (max-width: 1199px) {
width: 140px;
@media (min-width:991px) and (max-width: 1199px) {
max-width: 143px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;


불러오는 중...
취소
저장