ui: use compact table in share dialog

This commit is contained in:
SantaSpeen committed 2026-10-22 01:04:58 +03:00
1 parent 7fc7465f71
commit b569f68300
5 files changed
+95 -60

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 34 KiB

+69 -58
View File
@@ -1,65 +1,76 @@
<template>
<div class="card floating" id="share">
<div class="card floating" :class="{ 'share-listing': listing }" id="share">
<div class="card-title">
<h2>{{ $t("buttons.share") }}</h2>
</div>
<template v-if="listing">
<div class="card-content">
<div class="share-links">
<article
v-for="link in links"
:key="link.hash"
class="share-link-card"
>
<div class="share-link-details">
<a
:href="buildLink(link)"
target="_blank"
rel="noopener noreferrer"
class="share-link-name"
>/s/{{ link.hash }}</a
>
<small
><i class="material-icons" aria-hidden="true">schedule</i
>{{ link.expire ? humanTime(link.expire) : $t("permanent")
}}<i
v-if="link.hasPassword"
class="material-icons"
:title="$t('login.password')"
>lock</i
></small
>
</div>
<div class="share-link-actions">
<button
class="action"
:aria-label="$t('buttons.copyToClipboard')"
:title="$t('buttons.copyToClipboard')"
@click="copyToClipboard(buildLink(link))"
>
<i class="material-icons">link</i>
</button>
<button
class="action"
:aria-label="$t('buttons.copyDownloadLinkToClipboard')"
:title="$t('buttons.copyDownloadLinkToClipboard')"
:disabled="!!link.hasPassword"
@click="copyToClipboard(buildDownloadLink(link))"
>
<i class="material-icons">download</i>
</button>
<button
class="action share-link-delete"
:aria-label="$t('buttons.delete')"
:title="$t('buttons.delete')"
@click="deleteLink($event, link)"
>
<i class="material-icons">delete_outline</i>
</button>
</div>
</article>
</div>
<div class="card-content shares-table-wrap">
<table class="shares-table share-dialog-table">
<thead>
<tr>
<th>{{ $t("sso.shortName") }}</th>
<th>{{ $t("settings.shareDuration") }}</th>
<th>{{ $t("login.password") }}</th>
<th>
<span class="visually-hidden">{{ $t("sso.linkActions") }}</span>
</th>
</tr>
</thead>
<tbody>
<tr v-for="link in links" :key="link.hash">
<td>
<a
:href="buildLink(link)"
target="_blank"
rel="noopener noreferrer"
class="share-link-name"
>/s/{{ link.hash }}</a
>
</td>
<td>
{{ link.expire ? humanTime(link.expire) : $t("permanent") }}
</td>
<td>
<span
:title="
$t(link.hasPassword ? 'sso.protected' : 'sso.unprotected')
"
>{{ link.hasPassword ? $t("sso.protected") : "—" }}</span
>
</td>
<td>
<div class="share-link-actions">
<button
class="action"
:aria-label="$t('buttons.copyToClipboard')"
:title="$t('buttons.copyToClipboard')"
@click="copyToClipboard(buildLink(link))"
>
<i class="material-icons">link</i>
</button>
<button
class="action"
:aria-label="$t('buttons.copyDownloadLinkToClipboard')"
:title="$t('buttons.copyDownloadLinkToClipboard')"
:disabled="!!link.hasPassword"
@click="copyToClipboard(buildDownloadLink(link))"
>
<i class="material-icons">download</i>
</button>
<button
class="action share-link-delete"
:aria-label="$t('buttons.delete')"
:title="$t('buttons.delete')"
@click="deleteLink($event, link)"
>
<i class="material-icons">delete_outline</i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="card-action">
@@ -75,8 +86,8 @@
id="focus-prompt"
class="button button--flat button--blue"
@click="() => switchListing()"
:aria-label="$t('buttons.new')"
:title="$t('buttons.new')"
:aria-label="$t('sso.newLink')"
:title="$t('sso.newLink')"
>
{{ $t("sso.newLink") }}
</button>
+24
View File
@@ -1,4 +1,28 @@
/* Lightweight workspace: system fonts, solid surfaces, no blur or filter layers. */
#share.card.share-listing {
width: min(800px, calc(100vw - 32px));
}
#share .share-dialog-table {
min-width: 600px;
}
#share .share-dialog-table th:first-child {
width: 40%;
}
#share .share-dialog-table th:last-child {
width: 138px;
}
#share .share-dialog-table th,
#share .share-dialog-table td {
padding: 10px;
}
#share .share-dialog-table .share-link-name {
font-size: 13px;
font-weight: 500;
}
#share.share-listing .card-content {
max-height: 60vh;
overflow-y: auto;
}
.share-option {
display: grid;
gap: 12px;
+1 -1
View File
@@ -1,4 +1,4 @@
param([string]$Version = '3.0.0-sso.5')
param([string]$Version = '3.0.0-sso.6')
$ErrorActionPreference = 'Stop'
$repo = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
Push-Location $repo
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
VERSION="${VERSION:-3.0.0-sso.5}"
VERSION="${VERSION:-3.0.0-sso.6}"
COMMIT=$(git rev-parse --short HEAD)
(cd frontend && pnpm install --frozen-lockfile && pnpm run build)
mkdir -p build/release/linux-amd64