mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 17:30:31 +00:00
Align composer meta inset
This commit is contained in:
parent
9071fb238c
commit
1b6a017546
2 changed files with 4 additions and 4 deletions
|
|
@ -69,7 +69,6 @@
|
|||
box-sizing: border-box;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
padding-inline-start: calc(var(--size-4-1) / 2);
|
||||
gap: var(--size-4-2);
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
|
|
@ -218,7 +217,6 @@
|
|||
|
||||
.codex-panel__composer-meta-fatal {
|
||||
min-width: 0;
|
||||
padding-inline-start: calc(var(--size-4-1) / 2);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
|
|
|||
|
|
@ -124,13 +124,15 @@ describe("chat toolbar CSS", () => {
|
|||
|
||||
it("aligns composer status text with the input text inset", () => {
|
||||
const composerFrame = /\.codex-panel__composer-frame \{(?<body>[^}]+)\}/.exec(styles)?.groups?.["body"] ?? "";
|
||||
const composerMeta = /\.codex-panel__composer-meta \{(?<body>[^}]+)\}/.exec(styles)?.groups?.["body"] ?? "";
|
||||
const composerMetaStatus = /\.codex-panel__composer-meta-status \{(?<body>[^}]+)\}/.exec(styles)?.groups?.["body"] ?? "";
|
||||
const composerMetaFatal = /\.codex-panel__composer-meta-fatal \{(?<body>[^}]+)\}/.exec(styles)?.groups?.["body"] ?? "";
|
||||
|
||||
expect(composerFrame).toContain("background: var(--background-modifier-form-field)");
|
||||
expect(composerMeta).toContain("padding: 0 var(--size-4-2) var(--size-4-1)");
|
||||
expect(composerMetaStatus).toContain("position: relative");
|
||||
expect(composerMetaStatus).toContain("padding-inline-start: calc(var(--size-4-1) / 2)");
|
||||
expect(composerMetaFatal).toContain("padding-inline-start: calc(var(--size-4-1) / 2)");
|
||||
expect(composerMetaStatus).not.toContain("padding-inline-start");
|
||||
expect(composerMetaFatal).not.toContain("padding-inline-start");
|
||||
});
|
||||
|
||||
it("lets the shell provide Obsidian status bar composer clearance", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue