Skip to content

Refactor MediaAssetViewModeToggle to use toggle-group component #7863

@coderabbitai

Description

@coderabbitai

Context

The MediaAssetViewModeToggle component in src/platform/assets/components/MediaAssetViewModeToggle.vue was added in PR #7729. During review, it was noted that:

  • The component overrides many button styles
  • It's a single-use component, which we're trying to move away from

Proposed Solution

Refactor this component to use the toggle-group component being introduced in PR #7767, which is based on shadcn-vue's toggle-group.

References

┆Issue is synchronized with this Notion page by Unito

Metadata

Metadata

Assignees

Labels

area:uiGeneral user interface and experience improvementsarea:vue-migration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions