gov-layout 1.2.29 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -639,9 +639,7 @@ function SidebarUserProfile({
639
639
  return user.firstName || user.lastName || "\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49";
640
640
  };
641
641
  const getInitial = () => {
642
- if (user.firstName) return user.firstName.substring(0, 2);
643
- if (user.lastName) return user.lastName.substring(0, 2);
644
- return "\u0E1C\u0E39\u0E49";
642
+ return user.firstName?.charAt(0) || user.lastName?.charAt(0) || "?";
645
643
  };
646
644
  if (collapsed) {
647
645
  return /* @__PURE__ */ jsxs("div", { style: {
@@ -658,7 +656,7 @@ function SidebarUserProfile({
658
656
  onClick: onProfile,
659
657
  title: onProfile ? "\u0E14\u0E39\u0E42\u0E1B\u0E23\u0E44\u0E1F\u0E25\u0E4C" : getFullName(),
660
658
  style: { cursor: onProfile ? "pointer" : "default" },
661
- children: user.pictureUrl && !user.pictureUrl.startsWith("/") ? /* @__PURE__ */ jsx(
659
+ children: user.pictureUrl ? /* @__PURE__ */ jsx(
662
660
  "img",
663
661
  {
664
662
  src: user.pictureUrl,
@@ -777,7 +775,7 @@ function SidebarUserProfile({
777
775
  transition: "opacity 0.15s ease"
778
776
  },
779
777
  children: [
780
- user.pictureUrl && !user.pictureUrl.startsWith("/") ? /* @__PURE__ */ jsx(
778
+ user.pictureUrl ? /* @__PURE__ */ jsx(
781
779
  "img",
782
780
  {
783
781
  src: user.pictureUrl,