Fix a bunch of hardcoded borders + autofmt

This commit is contained in:
ItsLemmy
2025-11-18 19:17:25 -05:00
parent aa218e153d
commit 8242b0d97d
11 changed files with 14 additions and 20 deletions
+2 -7
View File
@@ -250,15 +250,10 @@ Item {
const htmlRegex = /<\/?[a-zA-Z][\s\S]*>/;
if (htmlRegex.test(str)) {
return str;
return str;
}
const escaped = str
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#39;");
const escaped = str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
const withBreaks = escaped.replace(/\r\n|\r|\n/g, "<br/>");
+1 -1
View File
@@ -123,7 +123,7 @@ NIconButton {
radius: height / 2
color: Color.mError
border.color: Color.mSurface
border.width: 1
border.width: Style.borderS
visible: count > 0 || !hideWhenZero
}
}
+1 -1
View File
@@ -260,7 +260,7 @@ Item {
radius: Style.radiusS
border.color: workspaceModel.isFocused ? Color.mPrimary : Color.mOutline
border.width: 1
border.width: Style.borderS
width: (hasWindows ? iconsFlow.implicitWidth : root.itemSize * 0.8) + (root.isVerticalBar ? Style.marginXS : Style.marginL)
height: (hasWindows ? iconsFlow.implicitHeight : root.itemSize * 0.8) + (root.isVerticalBar ? Style.marginL : Style.marginXS)
color: Style.capsuleColor