Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions scripts/text-theme.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ describe("text theme track info", () => {
});
});

describe("text theme playback bar", () => {
it("keeps Spotify 1.3 timestamps in flow beside the slash separator", () => {
const css = readFileSync(TEXT_THEME_CSS, "utf8");

assert.match(
css,
/\.playback-bar__progress-time-elapsed\s*>\s*span,\s*\.main-playbackBarRemainingTime-container\s*>\s*span\s*\{[^}]*position:\s*static\s*;[^}]*contain:\s*none\s*;/s,
);
});
});

describe("text theme expanded now playing view", () => {
it("uses the theme surface instead of Spotify's black cinema gutter", () => {
const css = readFileSync(TEXT_THEME_CSS, "utf8");
Expand Down
5 changes: 5 additions & 0 deletions themes/text/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,11 @@ form .main-topBar-searchBar:placeholder-shown {
pointer-events: none;
width: unset;
}
.playback-bar__progress-time-elapsed > span,
.main-playbackBarRemainingTime-container > span {
position: static;
contain: none;
}
.playback-bar__progress-time-elapsed::after {
content: " /";
}
Expand Down