Skip to content

Commit

Permalink
fix serializing grid-auto-flow
Browse files Browse the repository at this point in the history
fixes #650
  • Loading branch information
devongovett committed Dec 28, 2023
1 parent 29a9e41 commit ced2046
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/properties/grid.rs
Expand Up @@ -1014,10 +1014,10 @@ struct SerializedGridAutoFlow {
impl From<GridAutoFlow> for SerializedGridAutoFlow {
fn from(flow: GridAutoFlow) -> Self {
Self {
direction: if flow.contains(GridAutoFlow::Row) {
AutoFlowDirection::Row
} else {
direction: if flow.contains(GridAutoFlow::Column) {
AutoFlowDirection::Column
} else {
AutoFlowDirection::Row
},
dense: flow.contains(GridAutoFlow::Dense),
}
Expand Down

0 comments on commit ced2046

Please sign in to comment.