Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/271 TODO: fix rotate button Co-authored-by: joostdecock <joost@joost.at> Co-committed-by: joostdecock <joost@joost.at>
This commit is contained in:
parent
c6664cff19
commit
c17b58f141
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@ import { PatternLayout } from '../PatternLayout.mjs'
|
|||
import { DraftErrorHandler } from './DraftErrorHandler.mjs'
|
||||
import { i18nPlugin } from '@freesewing/plugin-i18n'
|
||||
import { themePlugin } from '@freesewing/plugin-theme'
|
||||
import { svgAttrPlugin } from '@freesewing/plugin-svgattr'
|
||||
import { translateStrings } from '../../../Pattern/index.mjs'
|
||||
|
||||
/**
|
||||
|
@ -47,6 +48,9 @@ export const DraftView = ({ Design, state, update, config, plugins = [], PluginO
|
|||
const strings = bundlePatternTranslations(pattern.designConfig.data.id)
|
||||
pattern.use(i18nPlugin, (t) => translateStrings([t], strings))
|
||||
pattern.use(themePlugin)
|
||||
pattern.use(svgAttrPlugin, {
|
||||
class: `freesewing pattern tw:w-full ${state.ui.rotate ? 'tw:-rotate-90' : ''}`,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue