Skip to content

Commit 14fc08e

Browse files
committed
fix(css): thème "bubbles" renommé en "sms"
1 parent c66201a commit 14fc08e

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

app/js/markdown/custom/yaml.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,11 @@ export function processYAML(markdownContent) {
150150
checkDarkModePreference();
151151
}
152152
if (yaml.theme) {
153-
const cssFile = yaml.theme.endsWith(".css")
154-
? "css/themes/" + yaml.theme
155-
: "css/themes/" + yaml.theme + ".css";
153+
// compatiblité avec l'ancien nom pour le thème sms
154+
const themeName = yaml.theme == "bubbles" ? "sms" : yaml.theme;
155+
const cssFile = themeName.endsWith(".css")
156+
? "css/themes/" + themeName
157+
: "css/themes/" + themeName + ".css";
156158
loadCSS(cssFile);
157159
}
158160
if (yaml.avatar) {

app/script.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/script.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)