fix: align share actions and collapse advanced options
This commit is contained in:
1 parent
a0de540dbd
commit
618fccd7bb
8 files changed
+80
-42
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 32 KiB |
@@ -68,7 +68,6 @@
|
|||||||
@click="closeHovers"
|
@click="closeHovers"
|
||||||
:aria-label="$t('buttons.close')"
|
:aria-label="$t('buttons.close')"
|
||||||
:title="$t('buttons.close')"
|
:title="$t('buttons.close')"
|
||||||
tabindex="2"
|
|
||||||
>
|
>
|
||||||
{{ $t("buttons.close") }}
|
{{ $t("buttons.close") }}
|
||||||
</button>
|
</button>
|
||||||
@@ -78,7 +77,6 @@
|
|||||||
@click="() => switchListing()"
|
@click="() => switchListing()"
|
||||||
:aria-label="$t('buttons.new')"
|
:aria-label="$t('buttons.new')"
|
||||||
:title="$t('buttons.new')"
|
:title="$t('buttons.new')"
|
||||||
tabindex="1"
|
|
||||||
>
|
>
|
||||||
{{ $t("buttons.new") }}
|
{{ $t("buttons.new") }}
|
||||||
</button>
|
</button>
|
||||||
@@ -101,37 +99,45 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p class="field-hint">{{ $t("sso.shortHint") }}</p>
|
<p class="field-hint">{{ $t("sso.shortHint") }}</p>
|
||||||
<p>{{ $t("settings.shareDuration") }}</p>
|
<details class="share-advanced">
|
||||||
<div class="input-group input">
|
<summary>{{ $t("sso.advancedSettings") }}</summary>
|
||||||
<vue-number-input
|
<div class="share-advanced-content">
|
||||||
center
|
<label for="share-duration">{{
|
||||||
controls
|
$t("settings.shareDuration")
|
||||||
size="small"
|
}}</label>
|
||||||
:max="2147483647"
|
<div class="input-group input">
|
||||||
:min="0"
|
<vue-number-input
|
||||||
@keyup.enter="submit"
|
id="share-duration"
|
||||||
v-model="time"
|
center
|
||||||
tabindex="1"
|
controls
|
||||||
/>
|
size="small"
|
||||||
<select
|
:max="2147483647"
|
||||||
class="right"
|
:min="0"
|
||||||
v-model="unit"
|
@keyup.enter="submit"
|
||||||
:aria-label="$t('time.unit')"
|
v-model="time"
|
||||||
tabindex="2"
|
/>
|
||||||
>
|
<select
|
||||||
<option value="seconds">{{ $t("time.seconds") }}</option>
|
class="right"
|
||||||
<option value="minutes">{{ $t("time.minutes") }}</option>
|
v-model="unit"
|
||||||
<option value="hours">{{ $t("time.hours") }}</option>
|
:aria-label="$t('time.unit')"
|
||||||
<option value="days">{{ $t("time.days") }}</option>
|
>
|
||||||
</select>
|
<option value="seconds">{{ $t("time.seconds") }}</option>
|
||||||
</div>
|
<option value="minutes">{{ $t("time.minutes") }}</option>
|
||||||
<p>{{ $t("prompts.optionalPassword") }}</p>
|
<option value="hours">{{ $t("time.hours") }}</option>
|
||||||
<input
|
<option value="days">{{ $t("time.days") }}</option>
|
||||||
class="input input--block"
|
</select>
|
||||||
type="password"
|
</div>
|
||||||
v-model.trim="password"
|
<label for="share-password">{{
|
||||||
tabindex="3"
|
$t("prompts.optionalPassword")
|
||||||
/>
|
}}</label>
|
||||||
|
<input
|
||||||
|
id="share-password"
|
||||||
|
class="input input--block"
|
||||||
|
type="password"
|
||||||
|
v-model.trim="password"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-action">
|
<div class="card-action">
|
||||||
@@ -140,7 +146,6 @@
|
|||||||
@click="() => switchListing()"
|
@click="() => switchListing()"
|
||||||
:aria-label="$t('buttons.cancel')"
|
:aria-label="$t('buttons.cancel')"
|
||||||
:title="$t('buttons.cancel')"
|
:title="$t('buttons.cancel')"
|
||||||
tabindex="5"
|
|
||||||
>
|
>
|
||||||
{{ $t("buttons.cancel") }}
|
{{ $t("buttons.cancel") }}
|
||||||
</button>
|
</button>
|
||||||
@@ -151,7 +156,6 @@
|
|||||||
:disabled="submitting"
|
:disabled="submitting"
|
||||||
:aria-label="$t('buttons.share')"
|
:aria-label="$t('buttons.share')"
|
||||||
:title="$t('buttons.share')"
|
:title="$t('buttons.share')"
|
||||||
tabindex="4"
|
|
||||||
>
|
>
|
||||||
{{ $t("buttons.share") }}
|
{{ $t("buttons.share") }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -125,11 +125,43 @@ nav .disk-usage {
|
|||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
.share-link-actions .action {
|
.share-link-actions .action {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex: 0 0 40px;
|
||||||
border: 1px solid var(--borderPrimary);
|
border: 1px solid var(--borderPrimary);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
width: 38px;
|
width: 40px;
|
||||||
height: 36px;
|
height: 40px;
|
||||||
padding: 4px;
|
padding: 0;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
.share-link-actions .action i {
|
||||||
|
position: static;
|
||||||
|
display: block;
|
||||||
|
transform: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 22px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
.share-advanced {
|
||||||
|
margin-top: 20px;
|
||||||
|
border-top: 1px solid var(--borderPrimary);
|
||||||
|
}
|
||||||
|
.share-advanced summary {
|
||||||
|
padding: 16px 0 0;
|
||||||
|
cursor: pointer;
|
||||||
|
color: var(--textSecondary);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.share-advanced-content {
|
||||||
|
display: grid;
|
||||||
|
gap: 12px;
|
||||||
|
padding-top: 18px;
|
||||||
|
}
|
||||||
|
#share .share-advanced .input-group {
|
||||||
|
margin: 0 0 8px;
|
||||||
}
|
}
|
||||||
.share-link-actions .action:hover {
|
.share-link-actions .action:hover {
|
||||||
background: var(--hover);
|
background: var(--hover);
|
||||||
|
|||||||
@@ -320,7 +320,8 @@
|
|||||||
"toggleTheme": "Switch theme",
|
"toggleTheme": "Switch theme",
|
||||||
"itemsCount": "{count} items",
|
"itemsCount": "{count} items",
|
||||||
"storage": "Storage",
|
"storage": "Storage",
|
||||||
"editorTheme": "The editor follows the interface theme automatically."
|
"editorTheme": "The editor follows the interface theme automatically.",
|
||||||
|
"advancedSettings": "Advanced settings"
|
||||||
},
|
},
|
||||||
"permissions": {
|
"permissions": {
|
||||||
"create": "Create files and directories",
|
"create": "Create files and directories",
|
||||||
|
|||||||
@@ -317,7 +317,8 @@
|
|||||||
"toggleTheme": "Переключить тему",
|
"toggleTheme": "Переключить тему",
|
||||||
"itemsCount": "Объектов: {count}",
|
"itemsCount": "Объектов: {count}",
|
||||||
"storage": "Хранилище",
|
"storage": "Хранилище",
|
||||||
"editorTheme": "Тема редактора автоматически соответствует теме интерфейса."
|
"editorTheme": "Тема редактора автоматически соответствует теме интерфейса.",
|
||||||
|
"advancedSettings": "Дополнительные настройки"
|
||||||
},
|
},
|
||||||
"permissions": {
|
"permissions": {
|
||||||
"create": "Создавать файлы и каталоги",
|
"create": "Создавать файлы и каталоги",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
param([string]$Version = '3.0.0-sso.2')
|
param([string]$Version = '3.0.0-sso.3')
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
$repo = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
|
$repo = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
|
||||||
Push-Location $repo
|
Push-Location $repo
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
set -eu
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
VERSION="${VERSION:-3.0.0-sso.2}"
|
VERSION="${VERSION:-3.0.0-sso.3}"
|
||||||
COMMIT=$(git rev-parse --short HEAD)
|
COMMIT=$(git rev-parse --short HEAD)
|
||||||
(cd frontend && pnpm install --frozen-lockfile && pnpm run build)
|
(cd frontend && pnpm install --frozen-lockfile && pnpm run build)
|
||||||
mkdir -p build/release/linux-amd64
|
mkdir -p build/release/linux-amd64
|
||||||
|
|||||||
Reference in new issue
Block a user