777 Star 1.5K Fork 351

开源中国 / Gitee Feedback

 / 详情

UI 能否支持宽屏?

意向
需求
创建于  
2017-09-06 14:39

现象描述

这么宽的屏幕就中间大概一半屏幕的宽度显示代码,两边全是空白感觉好蛋疼。。。

原版的 gitlab 是可以显示满整个屏幕的。。。

还有刚发现提 Issue 的时候没有预览呀。。

重现步骤

找个宽屏显示器。。。

报错信息

评论 (4)

Cat73 创建了任务

代码页面加上宽屏模式?

@企业版 也可以呀,不过感觉还是默认占满整个屏幕好点 0.0

写了个用户脚本来解决问题。。

// ==UserScript==
// @namespace         https://www.github.com/Cat7373/

// @name              git@osc 宽屏模式

// @match             http://git.oschina.net/
// @match             https://git.oschina.net/
// @match             http://gitee.com/
// @match             https://gitee.com/
// @match             http://git.oschina.net/*
// @match             https://git.oschina.net/*
// @match             http://gitee.com/*
// @match             https://gitee.com/*
// @grant             none
// @run-at            document-start
// ==/UserScript==

(function() {
    'use strict';

    (function full() {
        if (window.$) {
            var $mainContent = window.$('.main-content');

            if ($mainContent.size()) {
                $mainContent.removeClass('container').addClass('container-fluid');
            }
        }

        setTimeout(full, 100);
    })();
})();
诺墨 负责人设置为Poorfish
诺墨 任务类型任务 修改为需求
诺墨 任务状态待办的 修改为意向
Poorfish 添加协作者Poorfish
Poorfish 负责人Poorfish 修改为诺墨

登录 后才可以发表评论

状态
负责人
项目
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
1520777 create enterprise 1578953544 551147 normalcoder 1578927376 63274 poorfish 1683367132
Ruby
1
https://gitee.com/oschina/git-osc.git
git@gitee.com:oschina/git-osc.git
oschina
git-osc
Gitee Feedback

搜索帮助