- Gallery: browse GLB, glTF, VRM, PLY (mesh, point cloud, Gaussian splat) and SPZ with a built-in three.js viewer; thumbnails are rendered in the browser and stored on the server - Read workflows saved by SaveGLB from asset.extras - GenerateUI/Metadata/I tab: support PH3ImageConditioning (P-H3 Image edit and T2I templates) - Fix TextGenerate-family widget values shifted by one when the prompt is linked (also affected Krea-2, Ernie and LTX-2.5 templates) - Help (en/ja/zh), README, and DEVLOG updated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1239 lines
28 KiB
CSS
1239 lines
28 KiB
CSS
/* ============================================================
|
|
Gallery Tab Styles
|
|
============================================================ */
|
|
|
|
/* ── サブタブ (Output / Style-Prompt) ──────────────────────── */
|
|
|
|
.wfm-gallery-subtab-nav {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--wfm-border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.wfm-gallery-subtab-btn {
|
|
padding: 6px 16px;
|
|
font-size: 12px;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--wfm-text-secondary);
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.wfm-gallery-subtab-btn:hover { color: var(--wfm-text-primary); }
|
|
.wfm-gallery-subtab-btn.active { color: var(--wfm-primary); border-bottom-color: var(--wfm-primary); }
|
|
|
|
.wfm-gallery-panel {
|
|
display: none;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.wfm-gallery-panel.active { display: flex; }
|
|
|
|
/* ── 3カラムレイアウト ──────────────────────────────────────── */
|
|
|
|
.wfm-gallery-layout {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
gap: 0;
|
|
}
|
|
|
|
/* ── 左: フォルダツリーパネル ──────────────────────────────── */
|
|
|
|
.wfm-gallery-tree-panel {
|
|
width: 250px;
|
|
min-width: 250px;
|
|
max-width: 250px;
|
|
border-right: 1px solid var(--wfm-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background: var(--wfm-bg-secondary, #1a1a2e);
|
|
}
|
|
|
|
.wfm-gallery-tree-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--wfm-border);
|
|
flex-shrink: 0;
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
gap: 4px;
|
|
}
|
|
|
|
.wfm-gallery-tree-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--wfm-text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
flex: 1;
|
|
}
|
|
|
|
.wfm-gallery-tree-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
|
|
.wfm-gallery-tree {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.wfm-gallery-tree-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 3px 8px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
color: var(--wfm-text-primary);
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.wfm-gallery-tree-item:hover {
|
|
background: var(--wfm-bg-hover, rgba(255,255,255,0.06));
|
|
}
|
|
|
|
.wfm-gallery-tree-item.selected {
|
|
background: var(--wfm-accent, #4f8ef7);
|
|
color: #fff;
|
|
}
|
|
|
|
.wfm-gallery-tree-item.selected .wfm-gallery-tree-count {
|
|
background: rgba(255,255,255,0.25);
|
|
}
|
|
|
|
.wfm-gallery-tree-arrow {
|
|
font-size: 10px;
|
|
width: 14px;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
color: var(--wfm-text-secondary);
|
|
transition: transform 0.15s;
|
|
}
|
|
|
|
.wfm-gallery-tree-label {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.wfm-gallery-tree-count {
|
|
font-size: 10px;
|
|
background: var(--wfm-accent-muted, rgba(79,142,247,0.2));
|
|
color: var(--wfm-accent, #4f8ef7);
|
|
border-radius: 8px;
|
|
padding: 0 5px;
|
|
line-height: 1.4;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.wfm-gallery-tree-children {
|
|
/* 子ノードコンテナ */
|
|
}
|
|
|
|
/* ── 中: 画像一覧パネル ────────────────────────────────────── */
|
|
|
|
.wfm-gallery-list-panel {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
min-width: 0;
|
|
border-right: 1px solid var(--wfm-border);
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
}
|
|
|
|
.wfm-gallery-grid {
|
|
padding: 8px;
|
|
}
|
|
|
|
/* サムネイルビュー */
|
|
.wfm-gallery-view-thumb {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
gap: 8px;
|
|
align-items: start;
|
|
}
|
|
|
|
.wfm-gallery-thumb-card {
|
|
position: relative;
|
|
background: var(--wfm-bg-secondary, #1a1a2e);
|
|
border: 1px solid var(--wfm-border);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
}
|
|
|
|
.wfm-gallery-thumb-card:hover {
|
|
border-color: var(--wfm-accent, #4f8ef7);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.wfm-gallery-thumb-card.selected {
|
|
border-color: var(--wfm-accent, #4f8ef7);
|
|
box-shadow: 0 0 0 2px var(--wfm-accent, #4f8ef7);
|
|
}
|
|
|
|
.wfm-gallery-thumb-card.multi-selected {
|
|
border-color: #f59e0b;
|
|
box-shadow: 0 0 0 2px #f59e0b;
|
|
}
|
|
|
|
.wfm-gallery-thumb-img {
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
object-fit: cover;
|
|
display: block;
|
|
background: var(--wfm-bg-hover, #111);
|
|
}
|
|
|
|
.wfm-gallery-thumb-placeholder {
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--wfm-bg-hover, #222);
|
|
color: var(--wfm-text-secondary);
|
|
font-size: 24px;
|
|
}
|
|
|
|
/* お気に入りボタン(サムネイルカード右上) */
|
|
.wfm-gallery-thumb-fav-btn {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
background: rgba(0,0,0,0.5);
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 24px;
|
|
height: 24px;
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
color: rgba(255,255,255,0.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: opacity 0.15s, color 0.15s;
|
|
}
|
|
|
|
.wfm-gallery-thumb-card:hover .wfm-gallery-thumb-fav-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.wfm-gallery-thumb-fav-btn.active {
|
|
color: #fbbf24;
|
|
opacity: 1;
|
|
}
|
|
|
|
.wfm-gallery-thumb-fav-btn:hover {
|
|
background: rgba(0,0,0,0.75);
|
|
color: #fbbf24;
|
|
}
|
|
|
|
/* Feederグループボタン(サムネイルカード左上) */
|
|
.wfm-gallery-thumb-feeder-btn {
|
|
position: absolute;
|
|
top: 4px;
|
|
left: 4px;
|
|
background: rgba(0,0,0,0.5);
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 24px;
|
|
height: 24px;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
line-height: 1;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
color: rgba(255,255,255,0.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: opacity 0.15s, color 0.15s;
|
|
}
|
|
|
|
.wfm-gallery-thumb-card:hover .wfm-gallery-thumb-feeder-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.wfm-gallery-thumb-feeder-btn.active {
|
|
color: #38bdf8;
|
|
opacity: 1;
|
|
}
|
|
|
|
.wfm-gallery-thumb-feeder-btn:hover {
|
|
background: rgba(0,0,0,0.75);
|
|
color: #38bdf8;
|
|
}
|
|
|
|
/* 動画ファイル(mp4)の再生アイコンバッジ(サムネイル中央) */
|
|
.wfm-gallery-thumb-video-badge {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: rgba(0,0,0,0.55);
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* テーブルビューのお気に入りボタン */
|
|
.wfm-gallery-table-fav-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
color: rgba(255,255,255,0.3);
|
|
padding: 2px 4px;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.wfm-gallery-table-fav-btn:hover,
|
|
.wfm-gallery-table-fav-btn.active {
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.wfm-gallery-thumb-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px;
|
|
padding: 4px 6px;
|
|
}
|
|
|
|
/* テーブルビュー */
|
|
.wfm-gallery-view-table {
|
|
display: block;
|
|
}
|
|
|
|
.wfm-gallery-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.wfm-gallery-table thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--wfm-bg-secondary, #1a1a2e);
|
|
color: var(--wfm-text-secondary);
|
|
font-weight: 600;
|
|
padding: 6px 8px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--wfm-border);
|
|
z-index: 1;
|
|
}
|
|
|
|
.wfm-gallery-table tbody tr {
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.wfm-gallery-table tbody tr:hover {
|
|
background: var(--wfm-bg-hover, rgba(255,255,255,0.05));
|
|
}
|
|
|
|
.wfm-gallery-table tbody tr.selected {
|
|
background: rgba(79,142,247,0.15);
|
|
}
|
|
|
|
.wfm-gallery-table tbody tr.multi-selected {
|
|
background: rgba(245,158,11,0.15);
|
|
}
|
|
|
|
.wfm-gallery-table td {
|
|
padding: 4px 8px;
|
|
border-bottom: 1px solid var(--wfm-border);
|
|
color: var(--wfm-text-primary);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.wfm-gallery-table-thumb {
|
|
width: 40px;
|
|
height: 40px;
|
|
object-fit: cover;
|
|
border-radius: 3px;
|
|
display: block;
|
|
}
|
|
|
|
.wfm-gallery-table-name {
|
|
max-width: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ── タグバッジ共通 ────────────────────────────────────────── */
|
|
|
|
.wfm-gallery-tag-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
background: rgba(79,142,247,0.15);
|
|
color: var(--wfm-accent, #4f8ef7);
|
|
border: 1px solid rgba(79,142,247,0.3);
|
|
border-radius: 10px;
|
|
padding: 1px 7px;
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.wfm-gallery-tag-remove {
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
opacity: 0.7;
|
|
margin-left: 1px;
|
|
}
|
|
|
|
.wfm-gallery-tag-remove:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ── 右: 詳細パネル ────────────────────────────────────────── */
|
|
|
|
.wfm-gallery-detail-panel {
|
|
width: 280px;
|
|
min-width: 280px;
|
|
max-width: 280px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background: var(--wfm-bg-secondary, #1a1a2e);
|
|
}
|
|
|
|
.wfm-gallery-detail-header {
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid var(--wfm-border);
|
|
flex-shrink: 0;
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
}
|
|
|
|
.wfm-gallery-detail-filename {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--wfm-text-primary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: block;
|
|
}
|
|
|
|
/* プレビュー */
|
|
.wfm-gallery-detail-preview {
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
max-height: 200px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
border-bottom: 1px solid var(--wfm-border);
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.wfm-gallery-preview-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.wfm-gallery-detail-img {
|
|
max-width: 100%;
|
|
max-height: 200px;
|
|
object-fit: contain;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* タブコンテンツ */
|
|
.wfm-gallery-detail-tab-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
}
|
|
|
|
.wfm-gallery-section-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--wfm-text-primary);
|
|
margin-bottom: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.wfm-gallery-info-section {
|
|
margin-bottom: 4px;
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.wfm-gallery-info-row {
|
|
font-size: 12px;
|
|
color: var(--wfm-text-primary);
|
|
margin-bottom: 3px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.wfm-gallery-image-prompt-text {
|
|
font-size: 12px;
|
|
color: var(--wfm-text-primary);
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
border: 1px solid var(--wfm-border);
|
|
border-radius: 4px;
|
|
padding: 6px 8px;
|
|
max-height: 160px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.wfm-gallery-tags-display {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.wfm-gallery-memo {
|
|
width: 100%;
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
border: 1px solid var(--wfm-border);
|
|
border-radius: 4px;
|
|
color: var(--wfm-text-primary);
|
|
font-size: 12px;
|
|
padding: 6px 8px;
|
|
resize: vertical;
|
|
box-sizing: border-box;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.wfm-gallery-memo:focus {
|
|
outline: none;
|
|
border-color: var(--wfm-accent, #4f8ef7);
|
|
}
|
|
|
|
/* ── Metadataタブ(Workflow全幅表示) ─────────────────────── */
|
|
|
|
.wfm-gallery-meta-tab {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 !important;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
}
|
|
|
|
.wfm-gallery-meta-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid var(--wfm-border);
|
|
flex-shrink: 0;
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
gap: 8px;
|
|
}
|
|
|
|
.wfm-gallery-meta-status {
|
|
font-size: 11px;
|
|
color: var(--wfm-text-secondary);
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.wfm-gallery-workflow-json {
|
|
flex: 1;
|
|
margin: 0;
|
|
padding: 10px;
|
|
font-family: "Consolas", "Monaco", monospace;
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
color: var(--wfm-text-primary);
|
|
background: var(--wfm-bg-secondary, #1a1a2e);
|
|
overflow: auto;
|
|
white-space: pre;
|
|
word-break: normal;
|
|
border: none;
|
|
}
|
|
|
|
/* グループ */
|
|
.wfm-gallery-current-groups {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-bottom: 6px;
|
|
font-size: 12px;
|
|
color: var(--wfm-text-secondary);
|
|
}
|
|
|
|
.wfm-gallery-groups-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.wfm-gallery-group-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 3px 6px;
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
border: 1px solid var(--wfm-border);
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.wfm-gallery-group-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--wfm-text-primary);
|
|
}
|
|
|
|
/* ── 一括操作バー ──────────────────────────────────────────── */
|
|
|
|
.wfm-gallery-bulk-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 5px 10px;
|
|
background: rgba(245,158,11,0.12);
|
|
border-bottom: 1px solid rgba(245,158,11,0.35);
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.wfm-gallery-bulk-count {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #f59e0b;
|
|
white-space: nowrap;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
/* ── ライトボックス ─────────────────────────────────────────── */
|
|
|
|
.wfm-gallery-lightbox {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,0.9);
|
|
z-index: 10000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.wfm-gallery-lightbox-inner {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
max-width: 90vw;
|
|
max-height: 90vh;
|
|
}
|
|
|
|
.wfm-gallery-lightbox-img {
|
|
max-width: 90vw;
|
|
max-height: 85vh;
|
|
object-fit: contain;
|
|
border-radius: 4px;
|
|
cursor: default;
|
|
}
|
|
|
|
.wfm-gallery-lightbox-footer {
|
|
margin-top: 8px;
|
|
color: rgba(255,255,255,0.7);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
}
|
|
|
|
.wfm-gallery-lightbox-close {
|
|
position: absolute;
|
|
top: -12px;
|
|
right: -12px;
|
|
background: rgba(0,0,0,0.7);
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
width: 28px;
|
|
height: 28px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
padding: 0;
|
|
}
|
|
|
|
.wfm-gallery-lightbox-close:hover {
|
|
background: rgba(255,255,255,0.2);
|
|
}
|
|
|
|
/* ── 画像比較ライトボックス ──────────────────────────────────── */
|
|
|
|
.wfm-lightbox-compare .wfm-lightbox-compare-inner {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
max-width: 96vw;
|
|
max-height: 92vh;
|
|
overflow: auto;
|
|
}
|
|
|
|
.wfm-lightbox-compare-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(var(--compare-cols, 2), 1fr);
|
|
gap: 12px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.wfm-lightbox-compare-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.wfm-lightbox-compare-img {
|
|
max-width: calc(92vw / var(--compare-cols, 2) - 12px);
|
|
max-height: 78vh;
|
|
object-fit: contain;
|
|
border-radius: 4px;
|
|
cursor: default;
|
|
}
|
|
|
|
.wfm-lightbox-compare-label {
|
|
color: rgba(255,255,255,0.75);
|
|
font-size: 12px;
|
|
text-align: center;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.wfm-lightbox-compare-close {
|
|
position: fixed;
|
|
top: 16px;
|
|
right: 16px;
|
|
z-index: 10001;
|
|
}
|
|
|
|
/* ── 詳細パネル アクションボタン行 ───────────────────────────── */
|
|
|
|
.wfm-gallery-detail-action-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
border-bottom: 1px solid var(--wfm-border);
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* ── 詳細パネル アクションボタン ─────────────────────────────── */
|
|
|
|
.wfm-gallery-action-btn {
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
border: 1px solid;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
align-self: center;
|
|
margin: 2px 3px;
|
|
color: #fff;
|
|
}
|
|
|
|
.wfm-gallery-action-btn-green {
|
|
background: var(--wfm-success, #22c55e);
|
|
border-color: var(--wfm-success, #22c55e);
|
|
}
|
|
.wfm-gallery-action-btn-green:hover {
|
|
background: #16a34a;
|
|
border-color: #16a34a;
|
|
}
|
|
|
|
.wfm-gallery-action-btn-primary {
|
|
background: var(--wfm-primary);
|
|
border-color: var(--wfm-primary);
|
|
}
|
|
.wfm-gallery-action-btn-primary:hover {
|
|
background: var(--wfm-primary-hover);
|
|
border-color: var(--wfm-primary-hover);
|
|
}
|
|
|
|
.wfm-gallery-action-btn-tagger {
|
|
background: var(--wfm-accent, #7c5cfc);
|
|
border-color: var(--wfm-accent, #7c5cfc);
|
|
}
|
|
.wfm-gallery-action-btn-tagger:hover {
|
|
background: #6a4de0;
|
|
border-color: #6a4de0;
|
|
}
|
|
|
|
.wfm-gallery-action-btn-orange {
|
|
background: #f59e0b;
|
|
border-color: #f59e0b;
|
|
color: #1a1a2e;
|
|
}
|
|
.wfm-gallery-action-btn-orange:hover {
|
|
background: #d97f06;
|
|
border-color: #d97f06;
|
|
}
|
|
|
|
/* ── ファイル操作ボタン (詳細パネル) ─────────────────────────── */
|
|
|
|
.wfm-gallery-file-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.wfm-gallery-file-actions .wfm-btn {
|
|
flex: 1;
|
|
}
|
|
|
|
/* ── 移動先選択モーダル ──────────────────────────────────────── */
|
|
|
|
.wfm-gallery-move-modal {
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
border: 1px solid var(--wfm-border);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
min-width: 320px;
|
|
max-width: 480px;
|
|
width: 90%;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.wfm-gallery-move-modal-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--wfm-text-primary);
|
|
}
|
|
|
|
.wfm-gallery-move-dest-sel {
|
|
width: 100%;
|
|
padding: 6px 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.wfm-gallery-move-filter {
|
|
width: 100%;
|
|
padding: 6px 8px;
|
|
font-size: 13px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.wfm-gallery-move-modal-footer {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* ============================================================
|
|
ImagePrompt / Style_Catalog ギャラリー (右ペイン)
|
|
============================================================ */
|
|
|
|
.wfm-imageprompt-detail-panel {
|
|
width: 520px;
|
|
min-width: 520px;
|
|
max-width: 520px;
|
|
flex-direction: row;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.wfm-imageprompt-detail-col {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
.wfm-imageprompt-detail-col-left {
|
|
width: 280px;
|
|
min-width: 280px;
|
|
max-width: 280px;
|
|
overflow-y: auto;
|
|
border-right: 1px solid var(--wfm-border);
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.wfm-imageprompt-detail-col-right {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.wfm-imageprompt-section {
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.wfm-imageprompt-prompt-box {
|
|
width: 100%;
|
|
resize: vertical;
|
|
font-size: 12px;
|
|
padding: 6px 8px;
|
|
background: var(--wfm-bg-primary, #16213e);
|
|
border: 1px solid var(--wfm-border);
|
|
border-radius: 4px;
|
|
color: var(--wfm-text-primary);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.wfm-imageprompt-btn-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.wfm-imageprompt-btn-row .wfm-btn {
|
|
flex: 1;
|
|
}
|
|
|
|
.wfm-imageprompt-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-top: 6px;
|
|
min-height: 24px;
|
|
}
|
|
|
|
.wfm-imageprompt-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
max-width: 100%;
|
|
background: rgba(79,142,247,0.15);
|
|
color: var(--wfm-accent, #4f8ef7);
|
|
border: 1px solid rgba(79,142,247,0.3);
|
|
border-radius: 10px;
|
|
padding: 2px 4px 2px 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.wfm-imageprompt-chip-text {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 220px;
|
|
}
|
|
|
|
.wfm-imageprompt-chip-remove {
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
padding: 0 2px;
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.wfm-imageprompt-chip-remove:hover { opacity: 1; }
|
|
|
|
.wfm-imageprompt-final-section {
|
|
height: 100%;
|
|
}
|
|
|
|
.wfm-imageprompt-final-textarea {
|
|
margin-top: 4px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
resize: none;
|
|
}
|
|
|
|
/* 音声ファイル: 波形画像+<audio> コントロール */
|
|
.wfm-gallery-audio-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 8px;
|
|
width: 100%;
|
|
}
|
|
.wfm-gallery-audio-wave {
|
|
object-fit: contain;
|
|
max-height: 220px;
|
|
background: #181c26;
|
|
border-radius: 6px;
|
|
}
|
|
.wfm-gallery-audio-player {
|
|
width: 100%;
|
|
}
|
|
|
|
/* 変換ダイアログ */
|
|
.wfm-gallery-convert-modal {
|
|
min-width: 360px;
|
|
max-width: 480px;
|
|
}
|
|
.wfm-gallery-convert-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin: 8px 0;
|
|
}
|
|
.wfm-gallery-convert-row .wfm-select {
|
|
min-width: 150px;
|
|
}
|
|
.wfm-gallery-convert-check {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
margin: 6px 0;
|
|
font-size: 12px;
|
|
}
|
|
.wfm-gallery-convert-note,
|
|
.wfm-gallery-convert-status {
|
|
font-size: 12px;
|
|
opacity: 0.8;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
/* 音声: 詳細パネルのプレビュー枠は固定高さ(正方形)をやめ、波形+プレイヤーを収める */
|
|
.wfm-gallery-detail-preview--audio {
|
|
aspect-ratio: auto;
|
|
max-height: none;
|
|
overflow: visible;
|
|
padding: 8px;
|
|
}
|
|
.wfm-gallery-detail-preview--audio .wfm-gallery-audio-wave {
|
|
max-height: 150px;
|
|
}
|
|
|
|
/* ── セマンティック検索 ─────────────────────────────────────── */
|
|
|
|
.wfm-gallery-sem-toggle.active {
|
|
background: var(--wfm-primary);
|
|
border-color: var(--wfm-primary);
|
|
color: #fff;
|
|
}
|
|
|
|
/* 2行目(Similar / 更新)のボタン: Taggerの紫と区別できるティール */
|
|
.wfm-sem-sim {
|
|
background: #0d9488;
|
|
border-color: #0d9488;
|
|
color: #fff;
|
|
}
|
|
.wfm-sem-sim:hover {
|
|
background: #0f766e;
|
|
border-color: #0f766e;
|
|
}
|
|
/* 類似画像表示中(トグルON)は縁取りで状態を示す */
|
|
#wfm-gallery-similar-btn.active {
|
|
box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px #0d9488;
|
|
}
|
|
|
|
.wfm-gallery-sem-row {
|
|
gap: 6px;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
.wfm-gallery-sem-count {
|
|
margin-left: 6px;
|
|
font-size: 12px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.wfm-gallery-thumb-score {
|
|
position: absolute;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
padding: 1px 5px;
|
|
border-radius: 8px;
|
|
background: rgba(13, 148, 136, 0.85);
|
|
color: #fff;
|
|
font-size: 10px;
|
|
line-height: 14px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.wfm-sem-modal { display: flex; flex-direction: column; gap: 10px; min-width: 420px; }
|
|
.wfm-sem-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.wfm-sem-folder { font-family: monospace; font-size: 12px; word-break: break-all; opacity: 0.85; }
|
|
.wfm-sem-hint { font-size: 11px; opacity: 0.7; margin: 0; }
|
|
.wfm-sem-ok { color: #22c55e; }
|
|
.wfm-sem-ng { color: #ef4444; }
|
|
.wfm-sem-actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
.wfm-sem-bar { height: 8px; border-radius: 4px; background: var(--wfm-border, #444); overflow: hidden; }
|
|
.wfm-sem-bar-fill { height: 100%; width: 0; background: #0d9488; transition: width 0.3s; }
|
|
|
|
/* フォルダツリー: 直下の画像が全件セマンティック索引済みのフォルダに付くドット */
|
|
.wfm-gallery-tree-sem-dot {
|
|
display: inline-block;
|
|
width: 7px;
|
|
height: 7px;
|
|
margin-left: 4px;
|
|
border-radius: 50%;
|
|
background: #22c55e;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* モーダルのヘルプボタンから飛んだ先の説明を一時的に強調 */
|
|
.wfm-help-flash {
|
|
animation: wfm-help-flash 2.5s ease-out;
|
|
}
|
|
@keyframes wfm-help-flash {
|
|
0%, 60% { background: rgba(13, 148, 136, 0.35); }
|
|
100% { background: transparent; }
|
|
}
|
|
|
|
.wfm-sem-local-opts { display: flex; flex-direction: column; gap: 10px; padding: 8px 10px; border: 1px solid var(--wfm-border, #444); border-radius: 6px; }
|
|
|
|
/* セマンティック検索モーダル: タブ */
|
|
.wfm-sem-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--wfm-border, #444); }
|
|
.wfm-sem-tab-btn {
|
|
padding: 6px 14px;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-bottom: none;
|
|
border-radius: 6px 6px 0 0;
|
|
color: var(--wfm-text-secondary, #aaa);
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
}
|
|
.wfm-sem-tab-btn:hover { color: var(--wfm-text, #fff); }
|
|
.wfm-sem-tab-btn.active {
|
|
color: var(--wfm-text, #fff);
|
|
background: var(--wfm-bg-secondary, #1a1a2e);
|
|
border-color: var(--wfm-border, #444);
|
|
margin-bottom: -1px;
|
|
border-bottom: 1px solid var(--wfm-bg-secondary, #1a1a2e);
|
|
}
|
|
.wfm-sem-pane { display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
|
|
.wfm-sem-footer { justify-content: flex-end; border-top: 1px solid var(--wfm-border, #444); padding-top: 10px; }
|
|
.wfm-sem-num { width: 80px; }
|
|
.wfm-sem-url { width: 240px; max-width: 100%; }
|
|
.wfm-sem-danger { margin-left: auto; color: #ef4444; }
|
|
|
|
.wfm-sem-row .wfm-select { width: auto; min-width: 90px; }
|
|
|
|
/* 3Dモデルビューア */
|
|
.wfm-gallery-thumb-video-badge.wfm-gallery-thumb-video-badge--corner {
|
|
top: auto;
|
|
left: auto;
|
|
right: 4px;
|
|
bottom: 4px;
|
|
width: auto;
|
|
height: auto;
|
|
padding: 1px 5px;
|
|
border-radius: 3px;
|
|
font-size: 10px;
|
|
line-height: 14px;
|
|
transform: none;
|
|
}
|
|
.wfm-g3d-box {
|
|
position: relative;
|
|
background: #181c26;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
.wfm-gallery-detail-img.wfm-g3d-box {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.wfm-gallery-lightbox-img.wfm-g3d-box {
|
|
width: 90vw;
|
|
height: 85vh;
|
|
}
|
|
.wfm-lightbox-compare-img.wfm-g3d-box {
|
|
width: calc(92vw / var(--compare-cols, 2) - 12px);
|
|
height: 78vh;
|
|
}
|
|
.wfm-g3d-canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
outline: none;
|
|
}
|
|
.wfm-g3d-status {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px;
|
|
text-align: center;
|
|
color: var(--wfm-text-secondary);
|
|
font-size: 12px;
|
|
pointer-events: none;
|
|
}
|
|
.wfm-g3d-status--error {
|
|
color: #f87171;
|
|
}
|
|
.wfm-g3d-stats {
|
|
position: absolute;
|
|
left: 6px;
|
|
bottom: 4px;
|
|
color: #cbd5e1;
|
|
font-size: 10px;
|
|
text-shadow: 0 0 3px #000;
|
|
pointer-events: none;
|
|
}
|
|
.wfm-g3d-reset {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
width: 22px;
|
|
height: 22px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
color: #e2e8f0;
|
|
font-size: 13px;
|
|
line-height: 22px;
|
|
cursor: pointer;
|
|
}
|
|
.wfm-g3d-reset:hover {
|
|
background: rgba(0, 0, 0, 0.75);
|
|
}
|