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