Skip to content

Commit abb361a

Browse files
committed
MOBILE-1987 popup: Style big popups
1 parent 3ba43c9 commit abb361a

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

www/core/components/login/controllers/site.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ angular.module('mm.core.login')
8888
$scope.issue = issue;
8989
var popup = $ionicPopup.show({
9090
templateUrl: 'core/components/login/templates/login-issue.html',
91-
scope: $scope
91+
scope: $scope,
92+
cssClass: 'mm-nohead mm-bigpopup'
9293
});
9394

9495
$scope.closePopup = function() {

www/core/lib/util.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,9 @@ angular.module('mm.core')
773773

774774
options.template = addFormatTextIfNeeded(template); // Add format-text to handle links.
775775
options.title = title;
776+
if (!title) {
777+
options.cssClass = 'mm-nohead';
778+
}
776779
return $ionicPopup.confirm(options).then(function(confirmed) {
777780
if (!confirmed) {
778781
return $q.reject();

www/core/scss/styles.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,16 @@ mm-timer {
690690
width: 320px;
691691
}
692692

693+
.popup-container.mm-nohead .popup-head {
694+
display: none;
695+
}
696+
697+
.popup-container.mm-bigpopup .popup {
698+
width: 90%; // Fallback of calc.
699+
width: calc(100% - 20px);
700+
max-width: none;
701+
}
702+
693703
// Inline icons and inputs.
694704

695705
.mm-text-with-icon-right {

0 commit comments

Comments
 (0)