feat: added Date Vertical Alignment setting and updated version to v1.17.0
This commit is contained in:
parent
77daa6e30b
commit
10aa9aabb5
@ -279,6 +279,11 @@ const translations: Record<string, any> = {
|
|||||||
allDayBelow: "Below",
|
allDayBelow: "Below",
|
||||||
newPasswordDesc: "Leave blank to keep current password.",
|
newPasswordDesc: "Leave blank to keep current password.",
|
||||||
dateAlignment: "Date Alignment",
|
dateAlignment: "Date Alignment",
|
||||||
|
dateVerticalAlign: "Date Vertical Alignment",
|
||||||
|
alignTop: "Top",
|
||||||
|
alignMiddle: "Middle",
|
||||||
|
alignBottom: "Bottom",
|
||||||
|
dateLayout: "Date Layout",
|
||||||
alignmentLeft: "Left",
|
alignmentLeft: "Left",
|
||||||
alignmentCenter: "Center",
|
alignmentCenter: "Center",
|
||||||
alignmentRight: "Right",
|
alignmentRight: "Right",
|
||||||
@ -374,6 +379,11 @@ const translations: Record<string, any> = {
|
|||||||
allDayBelow: "Unten",
|
allDayBelow: "Unten",
|
||||||
newPasswordDesc: "Leer lassen, um das aktuelle Passwort zu behalten.",
|
newPasswordDesc: "Leer lassen, um das aktuelle Passwort zu behalten.",
|
||||||
dateAlignment: "Datums-Ausrichtung",
|
dateAlignment: "Datums-Ausrichtung",
|
||||||
|
dateVerticalAlign: "Datums-Vertikalausrichtung",
|
||||||
|
alignTop: "Oben",
|
||||||
|
alignMiddle: "Mitte",
|
||||||
|
alignBottom: "Unten",
|
||||||
|
dateLayout: "Datumslayout",
|
||||||
alignmentLeft: "Links",
|
alignmentLeft: "Links",
|
||||||
alignmentCenter: "Mitte",
|
alignmentCenter: "Mitte",
|
||||||
alignmentRight: "Rechts",
|
alignmentRight: "Rechts",
|
||||||
@ -4890,7 +4900,7 @@ export default function WeeklyView() {
|
|||||||
activeDateLayout === "above" ||
|
activeDateLayout === "above" ||
|
||||||
activeDateLayout === "below"
|
activeDateLayout === "below"
|
||||||
? (profile.dateAlignment === "left" ? "flex-start" : profile.dateAlignment === "right" ? "flex-end" : "center")
|
? (profile.dateAlignment === "left" ? "flex-start" : profile.dateAlignment === "right" ? "flex-end" : "center")
|
||||||
: "center",
|
: (profile.dateVerticalAlign === "top" ? "flex-start" : profile.dateVerticalAlign === "bottom" ? "flex-end" : "center"),
|
||||||
justifyContent:
|
justifyContent:
|
||||||
profile.dateAlignment === "left"
|
profile.dateAlignment === "left"
|
||||||
? "flex-start"
|
? "flex-start"
|
||||||
@ -10248,6 +10258,45 @@ function SettingsSidebar({
|
|||||||
<option value="tight">{t.alignmentTight || "Tight"}</option>
|
<option value="tight">{t.alignmentTight || "Tight"}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<label
|
||||||
|
style={{
|
||||||
|
display: "block",
|
||||||
|
fontSize: "0.85rem",
|
||||||
|
fontWeight: 600,
|
||||||
|
color: "var(--weekly-settings-label)",
|
||||||
|
marginBottom: "8px",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t.dateVerticalAlign || "Date Vertical Alignment"}
|
||||||
|
</label>
|
||||||
|
<select
|
||||||
|
value={profile.dateVerticalAlign || "middle"}
|
||||||
|
onChange={(e) =>
|
||||||
|
setProfile({
|
||||||
|
...profile,
|
||||||
|
dateVerticalAlign: e.target.value as
|
||||||
|
| "top"
|
||||||
|
| "middle"
|
||||||
|
| "bottom",
|
||||||
|
})
|
||||||
|
}
|
||||||
|
className="weekly-input"
|
||||||
|
style={{
|
||||||
|
width: "100%",
|
||||||
|
padding: "8px",
|
||||||
|
fontSize: "0.9rem",
|
||||||
|
border: "1px solid var(--weekly-settings-input-border)",
|
||||||
|
borderRadius: "4px",
|
||||||
|
background: "var(--weekly-settings-input-bg)",
|
||||||
|
color: "var(--weekly-settings-text)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<option value="top">{t.alignTop || "Top"}</option>
|
||||||
|
<option value="middle">{t.alignMiddle || "Middle"}</option>
|
||||||
|
<option value="bottom">{t.alignBottom || "Bottom"}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Day Names */}
|
{/* Day Names */}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user