Skip to content

Commit dde96bd

Browse files
committed
Fix for jquery-archive#3262 - set max-width for header/footer buttons and title
Text-overflow: ellipsis already set.
1 parent aaeacae commit dde96bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

css/structure/jquery.mobile.button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.ui-btn { display: block; text-align: center; cursor:pointer; position: relative; margin: .5em 5px; padding: 0; }
2-
.ui-header .ui-btn, .ui-footer .ui-btn, .ui-bar .ui-btn { display: inline-block; font-size: 13px; margin: 0; }
2+
.ui-header .ui-btn, .ui-footer .ui-btn, .ui-bar .ui-btn { display: inline-block; font-size: 13px; margin: 0; max-width: 30%; }
33
.ui-btn-inline { display: inline-block; }
44
.ui-btn-inner { padding: .6em 25px; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; position: relative; zoom: 1; }
55
.ui-btn input, .ui-btn button { z-index: 2; }

css/structure/jquery.mobile.core.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ div.ui-mobile-viewport { overflow-x: hidden; }
7575
.ui-page .ui-header, .ui-page .ui-footer { position: relative; }
7676
.ui-header .ui-btn-left { position: absolute; left: 10px; top: .4em; }
7777
.ui-header .ui-btn-right { position: absolute; right: 10px; top: .4em; }
78-
.ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 90px .8em; padding: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
78+
.ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 30% .8em; padding: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
7979
.ui-footer .ui-title { margin: .6em 15px .8em; }
8080

8181
/*content area*/

0 commit comments

Comments
 (0)