mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 03:57:20 +02:00
🐛 Fix problem with reverse config in flex
This commit is contained in:
parent
97fb1e00c2
commit
ba4554da79
3 changed files with 16 additions and 8 deletions
|
@ -9,14 +9,18 @@ pub enum Layout {
|
|||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum Direction {
|
||||
Row,
|
||||
RowReverse,
|
||||
Column,
|
||||
ColumnReverse,
|
||||
}
|
||||
|
||||
impl Direction {
|
||||
pub fn from_u8(value: u8) -> Self {
|
||||
match value {
|
||||
0 => Self::Row,
|
||||
1 => Self::Column,
|
||||
1 => Self::RowReverse,
|
||||
2 => Self::Column,
|
||||
3 => Self::ColumnReverse,
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue