Skip to content

Commit

Permalink
refactor: Update layout of BotPlugins page
Browse files Browse the repository at this point in the history
- Changed the class of the plugin-cards div to include responsive column classes.
- Removed specific column sizes and replaced them with row-cols classes for better responsiveness.
- Added a role attribute to the div containing PluginCard component.

These changes improve the layout and responsiveness of the BotPlugins page.
  • Loading branch information
SakuraIsayeki committed Sep 21, 2024
1 parent ed9c484 commit b009b95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/YumeChan.NetRunner/Pages/BotPlugins.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@
<p class="lead">Currently Loaded : @PluginsLoader.PluginManifests.Count Plugins</p>
</div>

<div id="plugin-cards" class="row">
<div id="plugin-cards" class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-3">
@foreach (IPlugin pluginManifest in PluginsLoader.PluginManifests.Values.Where(p => _isAdmin || !p.StealthMode))
{
<div class="col-12 col-md-6 col-lg-4">
<div role="presentation">
<PluginCard PluginManifest="pluginManifest" />
</div>
}

</div>


Expand Down

0 comments on commit b009b95

Please sign in to comment.