diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-19 14:33:21 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-19 14:33:21 +0800 |
commit | 71081be9e52f41175d8be789f58d802d7224bf02 (patch) | |
tree | a0c48007704e52fd053e48d186bf6e038369f854 /Course/Detail/Classic/Content/Main/TabContents/Instructor | |
parent | fd554c1abccd2d039c3e0526870e6e1e7f58241b (diff) |
Fix instructor tab content layout
There's still something wrong with the image height
Diffstat (limited to 'Course/Detail/Classic/Content/Main/TabContents/Instructor')
-rw-r--r-- | Course/Detail/Classic/Content/Main/TabContents/Instructor/ListInlineItem.ui.qml | 73 |
1 files changed, 34 insertions, 39 deletions
diff --git a/Course/Detail/Classic/Content/Main/TabContents/Instructor/ListInlineItem.ui.qml b/Course/Detail/Classic/Content/Main/TabContents/Instructor/ListInlineItem.ui.qml index f2941ed..78cfcb7 100644 --- a/Course/Detail/Classic/Content/Main/TabContents/Instructor/ListInlineItem.ui.qml +++ b/Course/Detail/Classic/Content/Main/TabContents/Instructor/ListInlineItem.ui.qml @@ -1,49 +1,44 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 -import QtGraphicalEffects 1.12 - +import QtGraphicalEffects 1.15 RowLayout { - id:listInline - width: listInlineItem.width - height: listInlineItem.height - RowLayout { - id:listInlineItem - Rectangle { - id: inlineItemIconBg - radius: 100 - color: "#4dfd7e14" - Layout.preferredHeight: 42 - Layout.preferredWidth: 42 - Layout.minimumHeight: 42 - Layout.minimumWidth: 42 - - Image { - id: inlineItemIcon - anchors.verticalCenter: parent.verticalCenter - source: "../../../../../../../Material/svg/filled/school.svg" - anchors.horizontalCenter: parent.horizontalCenter - fillMode: Image.PreserveAspectFit - Layout.preferredHeight: 12 - Layout.preferredWidth: 12 - Layout.minimumHeight: 12 - Layout.minimumWidth: 12 - ColorOverlay{ - anchors.fill: inlineItemIcon - source: inlineItemIcon - color: "#fd7e14" - } + Rectangle { + id: inlineItemIconBg + radius: 100 + color: "#4dfd7e14" + Layout.preferredHeight: 42 + Layout.preferredWidth: 42 + Layout.minimumHeight: 42 + Layout.minimumWidth: 42 + + Image { + id: inlineItemIcon + anchors.verticalCenter: parent.verticalCenter + source: "../../../../../../../Material/svg/filled/school.svg" + anchors.horizontalCenter: parent.horizontalCenter + fillMode: Image.PreserveAspectFit + Layout.preferredHeight: 12 + Layout.preferredWidth: 12 + Layout.minimumHeight: 12 + Layout.minimumWidth: 12 + + ColorOverlay { + anchors.fill: inlineItemIcon + source: inlineItemIcon + color: "#fd7e14" } } - Label { - id: instructorTitle - color: "#000000" - text: qsTr("List inline item metrics") - font.styleName: "Regular" - font.pointSize: 14 - font.family: "roboto" - } + } + + Label { + id: instructorTitle + color: "#000000" + text: qsTr("List inline item metrics") + font.styleName: "Regular" + font.pointSize: 14 + font.family: "roboto" } } |