From c6c1fd3222089b05933177015076221e896cb85b Mon Sep 17 00:00:00 2001 From: Robert Marshall Date: Sun, 9 May 2021 07:19:37 +0100 Subject: [PATCH] Create container to horizontally scroll tables. --- src/Website/Views/Account/Index.cshtml | 30 ++++++++++++++------------ src/Website/Views/Home/Index.cshtml | 17 ++++++++------- src/Website/wwwroot/css/style.scss | 4 ++++ 3 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/Website/Views/Account/Index.cshtml b/src/Website/Views/Account/Index.cshtml index 9c8d639..a97f4a6 100644 --- a/src/Website/Views/Account/Index.cshtml +++ b/src/Website/Views/Account/Index.cshtml @@ -7,20 +7,22 @@

Manage API Keys

Existing Keys

- - @foreach (var apiKey in Model.ApiKeys) - { - - - - - - - - - - } -
@apiKey.Name
@apiKey.Key
Copy@(apiKey.Enabled?"Enabled":"Disabled")EnableDisableDelete
+
+ + @foreach (var apiKey in Model.ApiKeys) + { + + + + + + + + + + } +
@apiKey.Name
@apiKey.Key
Copy@(apiKey.Enabled?"Enabled":"Disabled")EnableDisableDelete
+

Create New Key

diff --git a/src/Website/Views/Home/Index.cshtml b/src/Website/Views/Home/Index.cshtml index 3c72a88..afc3738 100644 --- a/src/Website/Views/Home/Index.cshtml +++ b/src/Website/Views/Home/Index.cshtml @@ -9,14 +9,15 @@

If you wish to get in contact, then get in touch via my LinkedIn profile.

Latest code commit

- - - - - - -
Repository@Model.GitCommit.RepositoryName
Branch@Model.GitCommit.BranchName
SHA@Model.GitCommit.Hash
Message@Model.GitCommit.CommitMessage
Timestamp@Model.GitCommit.Timestamp
- +
+ + + + + + +
Repository@Model.GitCommit.RepositoryName
Branch@Model.GitCommit.BranchName
SHA@Model.GitCommit.Hash
Message@Model.GitCommit.CommitMessage
Timestamp@Model.GitCommit.Timestamp
+

Latest Blog Post

@Model.BlogPost.Title

diff --git a/src/Website/wwwroot/css/style.scss b/src/Website/wwwroot/css/style.scss index 1318fe2..a1d918a 100644 --- a/src/Website/wwwroot/css/style.scss +++ b/src/Website/wwwroot/css/style.scss @@ -227,6 +227,10 @@ form { } } +.table-scroll-container{ + overflow-y: auto; +} + table.actions { border-collapse: collapse; width:100%;