-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fschmidt
committed
Jun 26, 2024
1 parent
9407f5c
commit 06539ce
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...emplate-builder/src/main/java/io/rocketbase/mail/config/config/TbSideImageLineConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.rocketbase.mail.config.config; | ||
|
||
import io.rocketbase.mail.styling.ObjectFit; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class TbSideImageLineConfig { | ||
|
||
static final TbSideImageLineConfig DEFAULT = new TbSideImageLineConfig(ObjectFit.NONE); | ||
|
||
private ObjectFit objectFit; | ||
|
||
public TbSideImageLineConfig(TbSideImageLineConfig other) { | ||
this.objectFit = other.objectFit; | ||
} | ||
|
||
public static TbSideImageLineConfig newInstance() { | ||
return new TbSideImageLineConfig(DEFAULT); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
email-template-builder/src/main/java/io/rocketbase/mail/styling/ObjectFit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.rocketbase.mail.styling; | ||
|
||
import lombok.Getter; | ||
|
||
public enum ObjectFit { | ||
CONTAIN("contain"), | ||
COVER("cover"), | ||
FILL("fill"), | ||
INHERENT("inherent"), | ||
INITIAL("initial"), | ||
NONE("none"), | ||
REVERT("revert"), | ||
REVERT_LAYER("revert-layer"), | ||
SCALE_DOWN("scale-down"), | ||
UNSET("unset"); | ||
|
||
@Getter | ||
private String value; | ||
|
||
ObjectFit(String value) { | ||
this.value = value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters