(function() {
    'use strict';

    angular
        .module('app')
        .controller('LoginDialogController', ['$mdDialog', function($mdDialog) {
            var vm = this;

            vm.showDialog = showDialog;
            
            ///////////////////////////////////////////////////////////////////////////

            function showDialog(url) {
                $mdDialog.show({
                    controller: DialogController,
                    templateUrl: get_tatoeba_root_url() + '/users/login_dialog_template?redirect=' + url,
                    parent: angular.element(document.body),
                    clickOutsideToClose:true
                });
            }

            function DialogController($scope, $mdDialog) {
                $scope.close = function() {
                    $mdDialog.cancel();
                };
            }
        }]);
})();

@@ -640,16 +640,55 @@
 ToClose:
+ true,%0A                    fullscreen: 
 true%0A   

Make login dialog fullscreen on -xs and -sm breakpoints