mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: 修复移动端导航栏丢失的问题
This commit is contained in:
1 parent
4d3501c611
commit
6d496258a6
6 files changed
+14
-10
No files matched your search
+5
-1
@@ -6,6 +6,7 @@
|
||||
|
||||
const { gt } = require('semver');
|
||||
const latest = require('latest-version');
|
||||
const path = require('path');
|
||||
const ora = require('ora');
|
||||
const { getWorkspaces, spawnAsync } = require('./utils');
|
||||
|
||||
@@ -54,7 +55,10 @@ if (CI && (!tag || GITHUB_EVENT_NAME !== 'push')) {
|
||||
if (Object.keys(bumpMap).length) {
|
||||
for (const name in bumpMap) {
|
||||
console.log(`publishing ${name}@${bumpMap[name]} ...`);
|
||||
await spawnAsync(`yarn npm publish ${name} --new-version ${bumpMap[name]}${tag === 'dev' ? '-dev' : ''} --access public --tag ${tag}`);
|
||||
await spawnAsync(
|
||||
`yarn npm publish --new-version ${bumpMap[name]}${tag === 'dev' ? '-dev' : ''} --access public --tag ${tag}`,
|
||||
path.resolve(`packages/${name}`),
|
||||
);
|
||||
}
|
||||
}
|
||||
console.log('Release created successfully.');
|
||||
|
||||
+5
-3
@@ -6,7 +6,7 @@ const spawn = require('cross-spawn');
|
||||
const cwd = process.cwd();
|
||||
|
||||
function getWorkspaces() {
|
||||
return globby(require('../package').workspaces, {
|
||||
return globby(require('../package.json').workspaces, {
|
||||
cwd,
|
||||
deep: 0,
|
||||
onlyDirectories: true,
|
||||
@@ -26,9 +26,11 @@ function spawnSync(command, silent) {
|
||||
}
|
||||
}
|
||||
|
||||
function spawnAsync(command) {
|
||||
function spawnAsync(command, path) {
|
||||
const args = command.split(/\s+/);
|
||||
const child = spawn(args[0], args.slice(1), { stdio: 'inherit' });
|
||||
const options = { stdio: 'inherit' };
|
||||
if (path) options.cwd = path;
|
||||
const child = spawn(args[0], args.slice(1), options);
|
||||
return new Promise((resolve, reject) => {
|
||||
child.on('close', resolve);
|
||||
child.on('error', reject);
|
||||
|
||||
@@ -91,7 +91,7 @@ $header-gap-mini-domain = ($header-bg-height-mini - $nav-item-height - $header-l
|
||||
a, a:visited, a:hover
|
||||
color: #FFF
|
||||
|
||||
.header--mobile__domain.is--system
|
||||
.header--mobile__domain
|
||||
display: block
|
||||
width: $nav-logo-width // no rem
|
||||
height: $nav-logo-height // no rem
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.10.6",
|
||||
"version": "4.10.7",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx), only screen and (min-resolution: 144dpi) {
|
||||
/* {% if nav_logo_dark_2x %} */
|
||||
.nav__logo, .header--mobile__domain.is--system {
|
||||
.nav__logo, .header--mobile__domain {
|
||||
background-image: url({{nav_logo_dark_2x}}) !important
|
||||
}
|
||||
/* {% endif %} */
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
{% if no_path_section %}
|
||||
<div class="header--mobile">
|
||||
<div class="row"><div class="columns clearfix">
|
||||
<div class="float-left">
|
||||
<a class="header--mobile__domain is--system" href="/" target="_self"> </a>
|
||||
<a class="header--mobile__domain" href="/" target="_self"> </a>
|
||||
</div>
|
||||
<div class="float-right">
|
||||
{% include "partials/hamburger.html" %}
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user